Google地图Geolocation API的替代方案 [英] Alternative to Google Maps Geolocation API
问题描述
我正在研究一个涉及每秒大量实时数据的项目(通过websockets实现)。因此,它无法处理调用Google的API以将City + Region转换为Longlat坐标。我的成功率约为1至100。是否有无限的替代城市&区域来协调Google API的服务?理想情况下,一个本地存储的JSON数组是这样的数据吗?通常当你处理大量的数据点时,你'd在服务器上对其进行一次地理编码。然后,您可以将经纬度数据流传输到您的客户端。
文档/地理编码/rel =nofollow noreferrer>可以从您的服务器使用的地理编码Web服务,但每天的请求限制为2500。如果这不起作用,您还可以查看 OSM 的Nominatim; Mapquest 托管一项无限制的网络服务。I'm working on a project that involves a huge volume of real time data per second (achieved by websockets). Because of this, it can't handle calling Google's API to convert a City + Region to a longlat coordinate. I'm getting about a 1 to 100 success rate. Is there an unlimited alternative to City & Region to Coordinate service of the Google API? Ideally a locally stored JSON array of such data?
Usually when you're dealing with a large number of data points, you'd geocode them once on the server. Then you can stream the lat/longs to your clients ready to use.
Google has a Geocoding web service you can use from your server, but there's a request limit of 2,500/day. If that won't work, you can also look in to OSM's Nominatim; Mapquest hosts a web service with no limits.
这篇关于Google地图Geolocation API的替代方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!