如何在没有谷歌的情况下逆向地理编码?

发布于 2024-09-14 20:53:02 字数 1539 浏览 5 评论 0原文

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

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

发布评论

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

评论(7

澉约 2024-09-21 20:53:02

Geonames 可以为您提供一个地名:

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

或邮政编码:

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

只要您信任他们,它就是免费的,并且您每天需要的查询次数少于 15000 次。如果您需要更多,您可以付款

Geonames can give you either a placename:

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

or a zip code:

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

It's free as long as you credit them and you need fewer than 15000 lookups per day. You can pay if you need more.

£冰雨忧蓝° 2024-09-21 20:53:02

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

RESTful位置服务API似乎没有发布任何限制。

您可以使用“按点查找位置”API:http://msdn.microsoft.com/ en-us/library/ff701710.aspx

我尝试了 geoNames 的示例,结果对我来说不够好,因为我需要县信息,并且响应时间很慢。

I am not a fan of MS. But check this out: http://msdn.microsoft.com/en-us/library/ff859477.aspx

RESTful Location Service API does not seem to post any restriction.

You can user Find Location By Point API: http://msdn.microsoft.com/en-us/library/ff701710.aspx

I tried out the sample for geoNames, the result is not good enough for me as I need county information, and the response time is slow.

近箐 2024-09-21 20:53:02

openstreetmap:

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

地理名称:

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

openstreetmap:

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

geonames:

$.getJSON('https://secure.geonames.org/countryCode', {
    lat: position.coords.latitude,
    lng: position.coords.longitude,
    type: 'JSON',
    username: 'demo'
}, function (result) {
    console.log(result);
});
围归者 2024-09-21 20:53:02

ArcGIS 提供免费(和付费)API:

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

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

以下是带有 JSON 响应的 API 调用示例:

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

ArcGIS provides a free (and paid) API:

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

It provides an address for a given location (lat/lon). It doesn't even require an API key, but they suggest you get a free one to avoid rate limits.

Here is an example API call, with a JSON response:

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

提赋 2024-09-21 20:53:02

MapQuest Open API 的 Nominatim 搜索服务是免费的,没有请求限制(软限制为 1/秒) 。

http:// open.mapquestapi.com/nominatim/v1/reverse.php?format=json&lat=44.0776182&lon=-92.5296981

可以找到 TOS 此处

Nominatim Search Service from MapQuest Open API is free and has no request limit (soft limit of 1/sec).

http://open.mapquestapi.com/nominatim/v1/reverse.php?format=json&lat=44.0776182&lon=-92.5296981

TOS can be found here

简单 2024-09-21 20:53:02

查看 Geocoda - 每月最多可免费进行 1K 次正向或反向地理编码调用,更多价格合理。

2019 年 2 月更新 - Geocoda 现已关闭。

Take a look at Geocoda - free for up to 1K forward or reverse geocoding calls per month, reasonably priced for more.

Update Feb. 2019 - Geocoda is now closed.

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