Geocode

术语 说明
地理编码 地理位置信息转换为经纬度,例:中国上海市=>(31.12, 121.123)
逆地理编码 经纬度转换为地理位置信息

国内Geocode Api

1.高德

官网

使用限制:

企业用户:单个Key支持400万次/天,6万次/分钟调用。
普通用户:单个Key支持2000次/天调用

请求示例:

http://restapi.amap.com/v3/geocode/regeo?output=json&location=116.310003,39.991957&key=<申请的KEY>```

响应:

```json
{
    "status": "1",
    "info": "OK",
    "infocode": "10000",
    "regeocode": {
        "formatted_address": "北京市海淀区燕园街道北京大学",
        "addressComponent": {
            "country": "中国",
            "province": "北京市",
            "city": [],
            "citycode": "010",
            "district": "海淀区",
            "adcode": "110108",
            "township": "燕园街道",
            "towncode": "110108015000",
            "neighborhood": {
                "name": "北京大学",
                "type": "科教文化服务;学校;高等院校"
            },
            "building": {
                "name": "北京大学",
                "type": "科教文化服务;学校;高等院校"
            },
            "streetNumber": {
                "street": "颐和园路",
                "number": "5号",
                "location": "116.310454,39.9927339",
                "direction": "东北",
                "distance": "94.5489"
            },
            "businessAreas": [
                {
                    "location": "116.29522008325625,39.99426090286774",
                    "name": "颐和园",
                    "id": "110108"
                },
                {
                    "location": "116.31060892521111,39.99231773703259",
                    "name": "北京大学",
                    "id": "110108"
                },
                {
                    "location": "116.32013920092481,39.97507461118122",
                    "name": "中关村",
                    "id": "110108"
                }
            ]
        }
    }
}
2.百度

网址

使用限制:

百度地图Geocoding API是一套免费对外开放的API,默认配额6000次/天。
同一个帐号下的HTTP/HTTPS请求,配额、并发共享。

海外

Google
待记录