How does Foursquare return venues during search?

Will the Foursquare API let a user of our app search for venues by location and name, regardless of the user's current GPS location?

  • We're building an iPhone app  and want to allow the user to search for venues by location and name  (i.e., find "Joe's Pizza" in "New York City"). Our preference is to use the Foursquare API, but it seems to require latitude and longitude as an input parameter; as a result, it won't let a user search beyond a specific radius around the user's current GPS location. Is there a way  to use Foursquare API to enable our desired functionality?

  • Answer:

    You could do a geocode on the location, in your example, New York City, then enter the lat/long info you get from that into the venue search endpoint. There are plenty of APIs to choose from for geocoding: http://code.google.com/apis/maps/documentation/geocoding/ http://developer.yahoo.com/geo/placefinder/ And here's the info for the venues search endpoint: http://developer.foursquare.com/docs/venues/search.html

Hung Truong at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.