简体   繁体   English

在哪里可以找到或者可以使用什么API来找到某个地方的lang / long?

[英]Where can I find or what API can i use to find the lang/long of a certain place?

I am making an app which you open it up and it will use your lang/long point to find the nearest ( for example: shop ) what api, or what would i need to do this? 我正在制作一个应用程序,将其打开,它将使用您的lang / long点找到最近的(例如shop)什么api,或者我需要做些什么?

/* this app is for the iPhone *\\ / *此应用程序适用于iPhone * \\

您将使用CoreLocation框架

There's no built-in API to find the nearest shop/restaurant/whatever, but you can make requests to the Google Local Search API to find them. 没有内置的API可以找到最近的商店/餐厅/任何地方,但是您可以向Google Local Search API发出请求以找到它们。

Note that this API is deprecated and will be phased out over the next 3 years, but I'm sure something will replace it. 请注意,此API已被弃用,并将在未来3年内逐步淘汰,但我敢肯定有什么东西会替代它。

您还可以使用Yahoo的placefinder api: http : //developer.yahoo.com/geo/placefinder/guide/

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

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