简体   繁体   English

Android-查找附近的地方

[英]Android - find nearby places

Developing an App on Android. 在Android上开发应用程序。 Looking for a free REST API that returns in XML format nearby places (Just like Facebook places app on iphone does). 寻找一个免费的REST API,以XML格式返回附近的地方(就像Facebook在iPhone上放置Places应用程序一样)。 Ultimately I would also want to display some of the places returned on the MapActivity - so better to have longitude-latitute in response. 最终,我还要显示在MapActivity上返回的一些位置-最好在响应中包含经度-纬度。 I also want to store the result address in free form, so that should also be part of the response.. 我也想以自由格式存储结果地址,因此它也应该是响应的一部分。

I also want some other API - which give free-format address would convert it to longitude-latitude. 我还想要一些其他API-提供自由格式的地址会将其转换为经度-纬度。 Something like this: http://developer.yahoo.com/geo/placefinder/ 像这样的东西: http : //developer.yahoo.com/geo/placefinder/

You can use Foursquare's API to get near by venues. 您可以使用Foursquare的API靠近场所。 You get the GPS location on the phone and then use Foursquare to get a list of venues. 您可以在电话上获取GPS位置,然后使用Foursquare获取场所列表。

Check out Foursquare's, Yelp and Google Places. 查看Foursquare,Yelp和Google地方信息。 Does it have to be XML, I am not sure if Yelp does XML, their default is JSON. 它一定是XML吗?我不确定Yelp是否使用XML,它们的默认值为JSON。

Thank you Amir and user317819.. I checked Foursquare as per the link mentioned here: http://code.google.com/p/foursquared/wiki/FoursquareIntents 谢谢阿米尔(Amir)和user317819。.我按照此处提到的链接检查了Foursquare: http : //code.google.com/p/foursquared/wiki/FoursquareIntents

[in the post ---> How to invoke Foursquare application from my app in Android phone? [在帖子中--->如何从Android手机中的应用程序调用Foursquare应用程序?

however, the urls in that app show options of opening with Foursquare app or Browser. 但是,该应用程序中的网址显示了使用Foursquare应用程序或浏览器打开的选项。 Is there a way to get only the raw data back, which I can use in my own app? 有没有办法只取回原始数据,我可以在自己的应用程序中使用它? Like in xml format or so..? 像是xml格式等等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM