masterkrang / jquery-foursquare-suggest

jquery plugin for foursquare suggestion completion (autocomplete) html input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 100.0%