iPhone: get nearby places / places list

亡梦爱人 提交于 2019-11-30 14:21:40

问题


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!


回答1:


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.




回答2:


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




回答3:


I believe facebook and the like foursquare built up their places mostly by user input. In other words they might have started by buying a commercial dataset in a particular location. That's the seed data. Thereafter, users can add more places as they go. This way their database grew and now they have their own proprietary data about places.

If you go to either apps, you can search for a place, and if not found you get the option to add that place with address, category etc.




回答4:


I am curious to know if Facebook uses any third party API for its Places feature.

For how it works, you can use Facebook Graph API which provides search.



来源:https://stackoverflow.com/questions/4425861/iphone-get-nearby-places-places-list

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!