The following steps need to be performed:
Create a developer account at Foursquare.
Create a new app to get your client ID and client secret.
Construct a request to the Foursquare venues endpoint. Make sure that you are passing either the latitude and longitude using the
llparameter, or a city with the
queryparameter with a venue category, and the
vparameter for the API versioning are also required.
Once the request is constructed, use jQuery's
getJSONfunction to call the endpoint.
Enumerate through the returned results, and for each venue, create a new marker.
Foursquare has a public API that is free to use as long as you have a developer account. It's a RESTful API, and using...