使用 CloudMade API 或其他地理搜索 API 来获取旅游景点?
我一直在寻找一个在线地理搜索 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这些数据来自哪里:
附近的餐馆搜索通常使用 Google AJAX Search API< /a> 使用本地搜索模式。它不适用于执行“旅游景点”或“历史地标”等模糊搜索,它需要更具体的搜索,如“博物馆”。从根本上来说,它是一种商业搜索(他们最初从黄页购买数据,因此它严重偏向于拥有电话的组织),因此它不会找到自然特征。每个查询的回复数也被限制为大约 8 个。
寻找出租公寓的应用程序往往有自己的数据库,而该数据库是通过阅读 Craigslist 等内容构建的。
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.
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