1. 百度地图
有全球逆地理编码,但18年改版后国外逆地理编码只有服务端api可用
逆地理编码
image Snipaste_2022-05-03_10-48-55.pnghttps://api.map.baidu.com/reverse_geocoding/v3/?ak=您的ak&output=json&coordtype=wgs84ll&location=31.225696563611,121.49884033194 //GET请求
注意:当前为V3.0版本接口文档,V2.0及以前版本自2019.6.18起新用户无法使用。老用户仍可继续使用V2.0及以前版本请求实现逆地理编码服务,为保障用户体验,建议您尽快迁移到V3.0版本。
如在使用V3.0 时“鉴权失败“ 可在”控制台“->"查看应用"->“设置” 确认是否已获得“逆地理编码服务”权限。
如有其他问题,可通过“反馈与帮助”反馈给我们。
2. 高德地图
逆地理编码API服务地址
URL
https://restapi.amap.com/v3/geocode/regeo?parameters
请求方式
GET
parameters代表的参数包括必填参数和可选参数。所有参数均使用和号字符(&)进行分隔。下面的列表枚举了这些参数及其使用规则。
3. 腾讯地图
逆地理编码
接口地址:https://apis.map.qq.com/ws/geocoder/v1/?location=
说明
-
企业开发者和个人开发者初始额度均为:日调用量10,000次,并发限制5次/秒。
-
申请企业认证后,可以在控制台->配额申请中免费申请你需要的配额,我们将对您的申请进行评估并进行审批(3个工作日内),审批通过后将会获得您申请的配额。
-
免费配额度仍不够用,可在控制台->配额管理中根据自己的业务需求购买调用量和并发量。
个人开发者 | 个人开发者 | 企业开发者 | 企业开发者 | ||
---|---|---|---|---|---|
接口 | 服务路径 | 调用量上限(次/日) | 并发量上限(次/秒) | 调用量上限(次/日) | 并发量上限(次/秒) |
逆地址解析(位置描述) | /ws/geocoder/v1 | 10,000 | 5 | 3,000,000 | 1000 |
地址解析 | /ws/geocoder/v1 | 10,000 | 5 | 3,000,000 | 1000 |
地点搜索 | /ws/place/v1/search | 10,000 | 5 | 500,000 | 200 |
地点搜索-周边推荐 | /ws/place/v1/explore | 10,000 | 5 | 10,000 | 5 |
地点搜索-id查询POI信息 | /ws/place/v1/detail | 10,000 | 5 | 500,000 | 200 |
关键词输入提示 | /ws/place/v1/suggestion | 10,000 | 5 | 500,000 | 200 |
行政区划 | /ws/district/v1 | 10,000 | 5 | 500,000 | 200 |
路线规划:驾车 | /ws/direction/v1/driving | 10,000 | 5 | 500,000 | 200 |
路线规划:公交 | /ws/direction/v1/transit | 10,000 | 5 | 500,000 | 200 |
路线规划:步行 | /ws/direction/v1/walking | 10,000 | 5 | 500,000 | 200 |
路线规划:自行车 | /ws/direction/v1/bicycling | 10,000 | 5 | 500,000 | 200 |
距离矩阵 | /ws/distance/v1/matrix | 10,000 | 5 | 500,000 | 625 |
路线规划:货车 | /ws/direction/v1/trucking | 1 | 1 | 100 | 1 |
距离矩阵:货车 | /ws/distance/v1/matrix?mode=trucking | 1 | 1 | 100 | 1 |
智能地址解析 | /ws/geocoder/v1/?smart_address=* | 1 | 1 | 100 | 1 |
IP定位 | /ws/location/v1/ip | 10,000 | 5 | 3,000,000 | 500 |
静态地图 | /ws/staticmap/v2 | 10,000 | 5 | 6,000,000 | 500 |
坐标转换 | /ws/coord/v1/translate | 10,000 | 5 | 3,000,000 | 1000 |
4. 咕咕数据(需收费)
逆地理编码
-
https://api.gugudata.com/location/geodecode
**返回格式: **application/json; charset=utf-8
**请求方式: **GET
**请求协议: **HTTPS
**数据预览: **https://www.gugudata.com/preview/geodecode
**接口测试: **https://api.gugudata.com/location/geodecode/demo
请求参数(GET 请求方式可参见下方示例代码)
参数名 参数类型 是否必须 默认值 备注 appkey string 是 YOUR_APPKEY 付费后获取的 APPKEY longitude string 是 YOUR_VALUE 经度值 latitude string 是 YOUR_VALUE 纬度值 返回参数
参数名 参数类型 备注 DataStatus.StatusCode int 接口返回状态码 DataStatus.StatusDescription string 接口返回状态说明 DataStatus.ResponseDateTime string 接口数据返回时间 DataStatus.DataTotalCount int 此条件下的总数据量,一般用于分页计算 Data.Country string 国家 Data.Province string 省 Data.City string 市 Data.District string 区 Data.Township string 县/街道 Data.Name string 位置名称 Data.Address string 位置地址
5. Google地图API
FQ出去后才看到,2018年7月改版前本来每月有100,000的免费额度的,555~
image6. 必应地图 https://msdn.microsoft.com/en-us/library/mt847173.aspx
https://dev.virtualearth.net/REST/v1/LocalSearch/?query=coffee&userLocation=47.602038,-122.333964&key={BingMapsKey}
{
"authenticationResultCode": "ValidCredentials",
"brandLogoUri": "http://dev.virtualearth.net/Branding/logo_powered_by.png",
"copyright": "Copyright © 2021 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.",
"resourceSets": [
{
"estimatedTotal": 10,
"resources": [
{
"__type": "SearchResult:http://schemas.microsoft.com/search/local/ws/rest/v1",
"name": "Starbucks",
"point": {
"type": "Point",
"coordinates": [
47.603889465332031,
-122.33554077148437
]
},
"Address": {
"addressLine": "823 1st Ave",
"adminDistrict": "WA",
"countryRegion": "US",
"formattedAddress": "823 1st Ave, Seattle, WA, 98104",
"locality": "Seattle",
"postalCode": "98104"
},
"PhoneNumber": "(206) 340-9184",
"Website": "http://www.starbucks.com/store/16645/",
"entityType": "Restaurant",
"geocodePoints": [
{
"type": "Point",
"coordinates": [
47.603809356689453,
-122.33565521240234
],
"calculationMethod": "Rooftop",
"usageTypes": [
"Display"
]
}
]
},
{
"__type": "SearchResult:http://schemas.microsoft.com/search/local/ws/rest/v1",
"name": "Starbucks",
"point": {
"type": "Point",
"coordinates": [
47.599094390869141,
-122.33290863037109
]
},
"Address": {
"addressLine": "400 Occidental Ave S",
"adminDistrict": "WA",
"countryRegion": "US",
"formattedAddress": "400 Occidental Ave S, Seattle, WA, 98104",
"locality": "Seattle",
"postalCode": "98104"
},
"PhoneNumber": "(206) 624-2561",
"Website": "http://www.starbucks.com/",
"entityType": "Restaurant",
"geocodePoints": [
{
"type": "Point",
"coordinates": [
47.599094390869141,
-122.33263397216797
],
"calculationMethod": "Rooftop",
"usageTypes": [
"Display"
]
}
]
},
{
"__type": "SearchResult:http://schemas.microsoft.com/search/local/ws/rest/v1",
"name": "Starbucks",
"point": {
"type": "Point",
"coordinates": [
47.605205535888672,
-122.33363342285156
]
},
"Address": {
"addressLine": "999 3rd Ave",
"adminDistrict": "WA",
"countryRegion": "US",
"formattedAddress": "999 3rd Ave, Seattle, WA, 98104",
"locality": "Seattle",
"postalCode": "98104"
},
"PhoneNumber": "(206) 748-0058",
"Website": "http://www.starbucks.com/",
"entityType": "Restaurant",
"geocodePoints": [
{
"type": "Point",
"coordinates": [
47.605247497558594,
-122.33421325683594
],
"calculationMethod": "Rooftop",
"usageTypes": [
"Display"
]
}
]
},
{
"__type": "SearchResult:http://schemas.microsoft.com/search/local/ws/rest/v1",
"name": "Starbucks",
"point": {
"type": "Point",
"coordinates": [
47.605587005615234,
-122.33090972900391
]
},
"Address": {
"addressLine": "800 5th Ave",
"adminDistrict": "WA",
"countryRegion": "US",
"formattedAddress": "800 5th Ave, Seattle, WA, 98104",
"locality": "Seattle",
"postalCode": "98104"
},
"PhoneNumber": "(206) 623-3425",
"Website": "https://www.starbucks.com/store-locator/store/89253/",
"entityType": "Restaurant",
"geocodePoints": [
{
"type": "Point",
"coordinates": [
47.605548858642578,
-122.33027648925781
],
"calculationMethod": "Rooftop",
"usageTypes": [
"Display"
]
}
]
},
{
"__type": "SearchResult:http://schemas.microsoft.com/search/local/ws/rest/v1",
"name": "Elm Coffee Roasters",
"point": {
"type": "Point",
"coordinates": [
47.600246429443359,
-122.33158874511719
]
},
"Address": {
"addressLine": "240 2nd Ave S Ste 103",
"adminDistrict": "WA",
"countryRegion": "US",
"formattedAddress": "240 2nd Ave S Ste 103, Seattle, WA, 98104",
"locality": "Seattle",
"postalCode": "98104"
},
"PhoneNumber": "(206) 445-7808",
"Website": "https://elmcoffeeroasters.com/",
"entityType": "Restaurant",
"geocodePoints": [
{
"type": "Point",
"coordinates": [
47.600181579589844,
-122.33110046386719
],
"calculationMethod": "Rooftop",
"usageTypes": [
"Display"
]
}
]
},
{
"__type": "SearchResult:http://schemas.microsoft.com/search/local/ws/rest/v1",
"name": "Starbucks",
"point": {
"type": "Point",
"coordinates": [
47.606231689453125,
-122.33615875244141
]
},
"Address": {
"addressLine": "1191 2nd Ave",
"adminDistrict": "WA",
"countryRegion": "US",
"formattedAddress": "1191 2nd Ave, Seattle, WA, 98101",
"locality": "Seattle",
"postalCode": "98101"
},
"PhoneNumber": "(206) 652-8924",
"Website": "http://www.starbucks.com/",
"entityType": "Restaurant",
"geocodePoints": [
{
"type": "Point",
"coordinates": [
47.606266021728516,
-122.33662414550781
],
"calculationMethod": "Rooftop",
"usageTypes": [
"Display"
]
}
]
},
{
"__type": "SearchResult:http://schemas.microsoft.com/search/local/ws/rest/v1",
"name": "Starbucks",
"point": {
"type": "Point",
"coordinates": [
47.604999542236328,
-122.33952331542969
]
},
"Address": {
"addressLine": "1101 Alaskan Way",
"adminDistrict": "WA",
"countryRegion": "US",
"formattedAddress": "1101 Alaskan Way, Seattle, WA, 98101",
"locality": "Seattle",
"postalCode": "98101"
},
"PhoneNumber": "(206) 554-7060",
"Website": "https://www.starbucks.com/store-locator/store/16417/",
"entityType": "Restaurant",
"geocodePoints": [
{
"type": "Point",
"coordinates": [
47.6048583984375,
-122.33982849121094
],
"calculationMethod": "Rooftop",
"usageTypes": [
"Display"
]
}
]
},
{
"__type": "SearchResult:http://schemas.microsoft.com/search/local/ws/rest/v1",
"name": "Starbucks",
"point": {
"type": "Point",
"coordinates": [
47.6070671081543,
-122.335693359375
]
},
"Address": {
"addressLine": "1201 3rd Ave",
"adminDistrict": "WA",
"countryRegion": "US",
"formattedAddress": "1201 3rd Ave, Seattle, WA, 98101",
"locality": "Seattle",
"postalCode": "98101"
},
"PhoneNumber": "(206) 467-3079",
"Website": "https://www.starbucks.com/store-locator/store/89252/",
"entityType": "Restaurant",
"geocodePoints": [
{
"type": "Point",
"coordinates": [
47.6070671081543,
-122.335693359375
],
"calculationMethod": "Rooftop",
"usageTypes": [
"Display"
]
}
]
},
{
"__type": "SearchResult:http://schemas.microsoft.com/search/local/ws/rest/v1",
"name": "Cherry Street Coffee House",
"point": {
"type": "Point",
"coordinates": [
47.602653503417969,
-122.33394622802734
]
},
"Address": {
"addressLine": "103 Cherry St",
"adminDistrict": "WA",
"countryRegion": "US",
"formattedAddress": "103 Cherry St, Seattle, WA, 98104",
"locality": "Seattle",
"postalCode": "98104"
},
"PhoneNumber": "(206) 621-9372",
"Website": "http://www.cherryst.com/",
"entityType": "Restaurant",
"geocodePoints": [
{
"type": "Point",
"coordinates": [
47.602653503417969,
-122.33394622802734
],
"calculationMethod": "Rooftop",
"usageTypes": [
"Display"
]
}
]
},
{
"__type": "SearchResult:http://schemas.microsoft.com/search/local/ws/rest/v1",
"name": "Slate Coffee Roasters",
"point": {
"type": "Point",
"coordinates": [
47.602470397949219,
-122.33266448974609
]
},
"Address": {
"addressLine": "602 2nd Ave",
"adminDistrict": "WA",
"countryRegion": "US",
"formattedAddress": "602 2nd Ave, Seattle, WA, 98104",
"locality": "Seattle",
"postalCode": "98104"
},
"PhoneNumber": "(206) 235-6565",
"Website": "http://www.slatecoffee.com/",
"entityType": "Restaurant",
"geocodePoints": [
{
"type": "Point",
"coordinates": [
47.602497100830078,
-122.33243560791016
],
"calculationMethod": "Rooftop",
"usageTypes": [
"Display"
]
}
]
}
]
}
],
"statusCode": 200,
"statusDescription": "OK",
"traceId": "801b6e061d3e4c838ed631c941280692|CO0000112B|0.0.0.0"
}
大厂的不行,寻找小厂 n 开源
-------------------------------------------华丽的分割线-------------------------------------------
7. OpenStreetMap https://wiki.openstreetmap.org/wiki/Zh-hans:Nominatim
可以XML测试使用,但官方说明没有提供Xml API,如果大批量使用极可能会被封IP~
image image8. Geonames http://www.geonames.org/maps/addresses.html#address
数据包括17个国家:http://www.geonames.org/maps/addresses.html#countries
日调用限制为30,000,1次消耗1积分
image9. 地信专业软件ArcGIS https://developers.arcgis.com/rest/geocode/api-reference/geocoding-free-vs-paid.htm
只让用来免费展示,如果想把地址信息存入数据库则需要购买。
image image**8. MAPQEST **https://developer.mapquest.com/documentation/geocoding-api/
image全球逆地理编码_Web服务——解决方案
地理编码转换geocoder
简介:完整的Ruby地理编码解决方案。
易于使用•支持Ruby 2.x和JRuby•兼容ActiveRecord,Mongoid,MongoMapper • 结果缓存 • 代理支持 • 多语言• Nominatim,Google,Bing,Yandex,MaxMind等•适用于Rails,Sinatra,等任何脚手架框架 • 命令行界面
因为公司有项目用到“逆地理编码”查了很多平台;从大厂、到小厂、到开源,其中还尝试查询过国内的超图(SuperMap)也是没有这项功能支持。因为是web端的,最终确认国内数据的话用百度(客户端的可以尝试百度API)和高德,国外的少量数据可以按次购买Google map api。
网友评论