问题描述:
请求地址:https://apis.map.qq.com/jsapi?qt=geoc&addr=%2C%2C%2C&key=你的key&output=jsonp&pf=jsapi&ref=jsapi&cb=qq.maps._svcb3.geocoder0
报错:qq.maps._svcb3.geocoder0&&qq.maps._svcb3.geocoder0({ "status": 113, "message": "此功能未被授权" })
解决方法:
地图JavascriptAPI v2的服务类API,因系统架构改造,计划在 2024-06-07日关闭,
新接口切换如下示例如下(具体文档登录官网查看):
qq.maps.SearchService
更换示例:https://apis.map.qq.com/ws/place/v1/search?boundary=region(北京,0)&keyword=颐和园&page_size=20&page_index=1&key=OB4BZ-D4W3U-*****
qq.maps.TransferService 更换示例:公交路线规划:https://apis.map.qq.com/ws/direction/v1/transit/?from=39.915285,116.403857&to=39.915285,116.603857&key=[你的key]
qq.maps.DrivingService
更换示例:驾车路线规划:https://apis.map.qq.com/ws/direction/v1/driving/?from=39.915285,116.403857&to=39.915285,116.803857&waypoints=39.111,116.112;39.112,116.113&output=json&callback=cb&key=[你的key]
qq.maps.Geocoder(涉及地址解析和逆地址解析两接口)
更换示例:地址解析 https://apis.map.qq.com/ws/geocoder/v1/?address=
更换示例:逆地址解析 https://lbs.qq.com/service/webService/webServiceGuide/address/Gcoder
qq.maps.CityService 更换示例:行政区划:https://apis.map.qq.com/ws/district/v1/list
qq.maps.convertor.translate 更换示例:坐标转换 :https://apis.map.qq.com/ws/coord/v1/translate
*请求很多为get,具体传参登录腾讯地图官网查看
标签:qq,web,https,示例,key,maps,报错,113,com From: https://www.cnblogs.com/herewang/p/18495889