-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationquestionFurther information is requestedFurther information is requested
Description
@acound
天地图API及服务接口调用418错误
自2019年1月1日起地图API及服务接口调用都需要获得开发授权,授权的方法也很简单,地址:
http://lbs.tianditu.gov.cn/authorization/authorization.html.
1.注册用户
2.申请成为天地图开发者
申请个人开发,不需要审核,立即生效
3.获取服务许可(Key密钥)
申请新应用,也是立即生效
地图服务调用
以天地图影像瓦片底图(球面墨卡托投影)服务为例,在原有瓦片获取请求参数中增加授权参数即可,其余使用方法不变。例如:
http://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={x}&TILECOL={y}&tk=您的密钥
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationquestionFurther information is requestedFurther information is requested