用于查找企业近坐标地图API [英] Maps API for looking up businesses near co-ordinates

查看:116
本文介绍了用于查找企业近坐标地图API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前工作的一个iPhone应用程序把GPS坐标找到我选择的最接近的电子卖场,并将它们显示给用户。我熟悉的<一个href=\"http://stackoverflow.com/questions/683817/google-maps-find-nearest-utilities\">http://stackoverflow.com/questions/683817/google-maps-find-nearest-utilities,但是这不正是我要找的。这也是一个JavaScript API。我想preFER一个API,在那里我可以给它百思买近40.2440,-75.0651,它会吐回从商店的地址和距离。

I'm currently working on an iPhone application to take GPS coordinates to find the closest electronic stores of my choosing and display them to the the user. I'm familiar with http://stackoverflow.com/questions/683817/google-maps-find-nearest-utilities, but this isn't exactly what I'm looking for. It's also a javascript API. I'd prefer an API where I can give it "best buy near 40.2440, -75.0651" and it'll spit back the address and distance from the store.

我宁愿不通过刮谷歌地图页面的麻烦去了。

I'd rather not go through the hassle of scraping a Google Maps page.

思考?

推荐答案

您可以试试雅虎的本地搜索Web服务:

You might try Yahoo's Local Search Web Services:

http://developer.yahoo.com/search/local/V3/ localSearch.html

这是一个REST API,这意味着你可以做一个NSURLConnection的到正确构造URL,并使用类似解析产生的JSON:

It's a REST API, which means you can just make a NSURLConnection to the properly constructed URL and parse the resulting JSON using something like:

HTTP://$c$c.google.com/p/json -framework /

最大的限制是,你可能无法在您收取服务使用这个API,但你需要考虑这样做的更多细节。请参阅使用指南在这里:

Biggest limitation is that you may not be able to use this API in a service that you charge for, but you'll need to look into that in more detail. See Usage Guidelines here:

http://info.yahoo.com/guidelines/美国/雅虎/ YDN / YDN-3955.html

这篇关于用于查找企业近坐标地图API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆