Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone: get nearby places / places list

I've been wondering, what list does facebook places use? Is it foursquare's one?

And if so, how does it work? Can I connect to foursquare's API and get nearby places with coordinates or something like that?

Thanks a lot!

like image 670
Tommy B. Avatar asked Feb 26 '23 14:02

Tommy B.


2 Answers

Here is simple way to find out places near by given LAT and LONG as well as with specific word like-- Hotel,Bar etc: http://maps.google.com/maps?f=q&sll=LATANDLONG&radius=500&q=SEARCHWORD&output=kml It returns KML file ,and user can parse just like XML parsing.

like image 58
sudesh Avatar answered Feb 28 '23 05:02

sudesh


Here's a link to FourSquare's documentation. Scroll down and look for "Venue methods." You supply the API the users longitude and latitude and Foursquare will return a list of nearby places.

http://groups.google.com/group/foursquare-api/web/api-documentation?pli=1

Also, here's a link to some sample code on how to implement the Foursquare API into your iOS app. https://github.com/anka/bw_examples/tree/master/FoursquareIntegration

like image 33
Brandon Schlenker Avatar answered Feb 28 '23 04:02

Brandon Schlenker