没有谷歌如何反转地理编码?

jes*_*vin 51 reverse-geocoding

除了谷歌地图API之外,是否有任何网络服务(付费或免费)允许您反转地理编码?

我的特定应用程序将可以访问经度和纬度,我需要能够获得美国邮政编码或州.

我无法使用Google的原因是,服务条款似乎表明,如果您使用Google Maps API,则需要使用这些数据来显示Google地图.

我正在使用C#.Net框架,以防相关.

ste*_*son 9

Geonames可以给你一个地名:

http://ws.geonames.org/findNearbyPlaceName?lat=40.65&lng=-73.78

或邮政编码:

http://ws.geonames.org/findNearbyPostalCodes?lat=40.65&lng=-73.78

它是免费的,只要你信任它们,你每天需要少于15000次查找.如果您需要更多,您可以付款.


xue*_*eru 8

我不是MS的粉丝.但请查看:http://msdn.microsoft.com/en-us/library/ff859477.aspx

RESTful Location Service API似乎没有发布任何限制.

您可以使用Find Point By Point API:http://msdn.microsoft.com/en-us/library/ff701710.aspx

我试用了geoNames的样本,结果对我来说不够好,因为我需要县信息,而且响应时间很慢.

  • 再看一下.如果数据用于需要用户名/密码的商业应用程序,那么您必须为此付费.http://www.microsoft.com/maps/product/licensing_for_enterprise.aspx (2认同)

rah*_*202 6

OpenStreetMap的:

$.getJSON('https://nominatim.openstreetmap.org/reverse', {
    lat: position.coords.latitude,
    lon: position.coords.longitude,
    format: 'json',
}, function (result) {
    console.log(result);
}); 
Run Code Online (Sandbox Code Playgroud)

GEONAMES:

$.getJSON('https://secure.geonames.org/countryCode', {
    lat: position.coords.latitude,
    lng: position.coords.longitude,
    type: 'JSON',
    username: 'demo'
}, function (result) {
    console.log(result);
});
Run Code Online (Sandbox Code Playgroud)


moo*_*aza 5

ArcGIS提供了免费(收费)的API:

https://developers.arcgis.com/rest/geocode/api-reference/geocoding-reverse-geocode.htm

它提供给定位置(纬度/经度)的地址。它甚至不需要API密钥,但是他们建议您免费获得一个API密钥来避免速率限制。

这是一个示例API调用,带有JSON响应:

http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location=4.366281%2C50.851994&langCode=fr&outSR=&forStorage=false&f=pjson