• 高德百度的逆地理编码接口对比


    逆地理编码接口现在比较常用, APP中用来展示当前用户所在得位置或街道名称
    对比一下高德和百度家提供的逆地理编码接口的限制区别

    次数限制, 两家是一模一样, 收费也一模一样

    1. 高德
    日配额(个人)日配额(企业)并发量收费
    5000次每天300万次每天1005万一年
    1. 百度
    日配额(个人)日配额(企业)并发量收费
    5000次每天300万次每天1005万一年

    接口返回数据对比, 俩接口请求参数和返回字段几乎一模一样
    需要注意一点, 高德的location参数是 “经度,纬度” 百度的是 “纬度,经度”

    高德
    https://restapi.amap.com/v3/geocode/regeo?output=json&location=118.129015,39.817244&key=你的key

    {
        "status":"1",
        "regeocode":{
            "addressComponent":{
                "city":"唐山市",
                "province":"河北省",
                "adcode":"130208",
                "district":"丰润区",
                "towncode":"130208003000",
                "streetNumber":{
                    "number":"10号",
                    "location":"118.129788,39.817208",
                    "direction":"东",
                    "distance":"66.1519",
                    "street":"唐丰路"
                },
                "country":"中国",
                "township":"浭阳街道",
                "citycode":"0315"
            },
            "formatted_address":"河北省唐山市丰润区浭阳街道唐丰路10号"
        },
        "info":"OK",
        "infocode":"10000"
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25

    百度
    https://api.map.baidu.com/reverse_geocoding/v3/?ak=你的key&output=json&coordtype=wgs84ll&location=39.817244,118.129015

    {
        "status":0,
        "result":{
            "location":{
                "lng":118.14206076152665,
                "lat":39.82431661561
            },
            "formatted_address":"河北省唐山市丰润区",
            "business":"",
            "addressComponent":{
                "country":"中国",
                "country_code":0,
                "country_code_iso":"CHN",
                "country_code_iso2":"CN",
                "province":"河北省",
                "city":"唐山市",
                "city_level":2,
                "district":"丰润区",
                "town":"",
                "town_code":"",
                "distance":"",
                "direction":"",
                "adcode":"130208",
                "street":"",
                "street_number":""
            },
            "pois":[
    
            ],
            "roads":[
    
            ],
            "poiRegions":[
    
            ],
            "sematic_description":"",
            "cityCode":265
        }
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39

    只要你的应用有请求次数了, 并且认证了 ( 不认证也不让用了…) , 用不了多长时间就会收到他们的电话, 先假惺惺的问一下使用情况, 然后说必须要付费了, 不然就停用接口, 两家收费都是5万一年, 有几个企业能支付的起的…
    几乎每一个APP都会用到lbs定位, 以前不收商用费, 现在开始收割了吗??

    如果您需要的是道路街道级定位, 那只能用他们的了, 如果您对精度要求没那么高, 比如只需要定位到所在的区县, 可以试试 易客api的区县级逆地理编码接口, 0.05达不溜一年,
    返回JSON:

    {
        "errcode":0,
        "errmsg":"success",
        "regeocode":{
            "addressComponent":{
                "province":"北京市",
                "city":"北京市",
                "district":"朝阳区",
                "adcode":"110105"
            }
        }
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12

    高德商用收费说明
    https://lbs.amap.com/upgrade#business
    百度商用收费说明
    https://lbsyun.baidu.com/cashier/auth

  • 相关阅读:
    疫情被裁员,大专毕业宅家6个月,逆袭月薪2w+
    初始Spring MVC
    Junit单元测试框架详解
    SQL存储过程详解
    使用 Google Cloud Run 在 GCP 上部署 React 应用
    云原生技术-微服务SpringCloud(1)
    Python 操作 Word
    Python从零到就业
    Vue.js之动态绑定组件
    jvm之类加载
  • 原文地址:https://blog.csdn.net/qq_38832501/article/details/127972808