Skip to content

jquery plugin for foursquare suggestion completion (autocomplete) html input

Notifications You must be signed in to change notification settings

masterkrang/jquery-foursquare-suggest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

jQuery Foursquare Suggest Completion Plugin

A simple way to get Foursquare Venues Suggestion Completion into your site's html input fields. Type something in the input field (like "ham", "hambur", or "hamburger") and get a list of matching Foursquare Venues (in this case, Minivenues). For more information on Foursquare Suggest Completion, go here.

alt text

The idea is to create something that is simple and lightweight, with no styling, so you can style it yourself (instead of figuring out how somebody else styled it first so you can delete those styles and add your own).

##Simple Sample Usage

  • Download and include foursquare_suggest.js

  • Call the fs_suggest() method as in the following example

$('#my_input').fs_suggest({
	'client_id'		: 'YOUR_CLIENT_ID',
	'client_secret'	: 'YOUR_CLIENT_SECRET',
	'll' : '37.787920,-122.407458', 
	'limit' : 10 
});

In the above sample, we took an html input element with the id of 'my____input' and called the fs_suggest() method to activate the plugin. We also passed some parameters into the plugin, 'client_id', 'client_secret', 'll' (latitude, longitude), and 'limit'. See below for an explanation of supported parameters.

##Supported Parameters:

  • client_id -
  • client_secret -
  • ll -
  • limit -

##Contribute

This is a work in progress, suggestions and changes welcome. To contribute.

  • fork it
  • change it
  • submit a pull request

About

jquery plugin for foursquare suggestion completion (autocomplete) html input

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published