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
Related Q & A:
- How To Use the Graph API to Upload Photos to a user’s profile?Best solution by Stack Overflow
- How to get user's current location?Best solution by Stack Overflow
- How do I find a yahoo user's profile if I have their email address?Best solution by Yahoo! Answers
- What's a good way to let a girl know you are interested in her?Best solution by Yahoo! Answers
- How do I search for a user?Best solution by Quora
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.