使用 CloudMade API 或其他地理搜索 API 来获取旅游景点?

发布于 2024-08-06 08:58:33 字数 229 浏览 4 评论 0原文

我一直在寻找一个在线地理搜索 API,这样我就可以获取旅游景点的位置数据,例如历史地标、旅游信息位置、城堡等。我不是在寻找地图图像,而是寻找标记的位置列表数据。我使用过 CloudMade,但似乎没有一个对象类型返回的响应数量与我期望的响应数量相同(即使有一个宽边界框)。 Bing、雅虎或谷歌地图似乎都没有没有地图的地理搜索 API——只有地理编码。我见过一些应用程序可以找到我附近 24 小时营业的餐馆或出租公寓 - 那一天从何而来?谢谢!

I've been looking for an online geosearch API such that I can get location data for tourism spots, e.g. historic landmarks, tourism information locations, castles, etc. I'm not looking for a map image, but rather a list of location tagged data. I've played with CloudMade, but none of the object types seems to returning anything like the number of reponses I expect (even with a wide bounding box). None of Bing, Yahoo or Google Maps seems to have a geosearch API w/o the maps -- just geocoding. I've seen apps that find restaurants open 24-hours or apartments for rent near me -- where does that day come from? Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

地狱即天堂 2024-08-13 08:58:33

Where does that data come from:

Nearby restaurant searches are often performed with the Google AJAX Search API using its Local Search mode. It doesn't work for performing vague searches like "tourism spot" or "historical landmark", it needs something more specific like "museum". It's fundamentally a business search (they initially bought data from Yellow Pages, so it's heavily biassed towards organisations that have a telephone) so it won't find natural features. It's also limited to about 8 replies per query.

Apps that find apartments for rent tend to have their own database, and that database is built by reading things like Craigslist.

宫墨修音 2024-08-13 08:58:33

CloudMade 对返回结果进行限制,以免损害您的浏览器。默认情况下它返回 10 个结果。您可以使用“limit=”和“offset=”进行分页。响应包含“找到”字段,该字段为您提供结果总数。

顺便说一句,几周前发布了新的 CloudMade Geocoding API。它更快、更容易使用。

更多信息 - http://blog.cloudmade.com/2009/10/08/new-geocoding-engine-delivers-results-up-to-24-times-faster/

文档 - http://developers.cloudmade.com/wiki/geocoding-http-api/Documentation

CloudMade uses limitation on the returning results not to hurt your browser. By default it returns 10 result. You could use "limit=" and "offset=" for paging. And the response contains "found" field which gives you the total number of results.

BTW, couple of weeks ago new CloudMade Geocoding API was published. It is far faster and easier to use.

More info - http://blog.cloudmade.com/2009/10/08/new-geocoding-engine-delivers-results-up-to-24-times-faster/

Documentation - http://developers.cloudmade.com/wiki/geocoding-http-api/Documentation

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文