需两次购买:①订购原厂商接口 ②免费接口,注册后直接调用;天地图地图服务支持HTTP和HTTPS协议。服务采用OGC WMTS标准,具体使用方法请参考OGC WMTS标准 中GetCapabilities 和GetTile。天地图地图服务对所有用户开放。使用本组服务之前,需要申请Key。
天地图行政区划API是一类简单的HTTP/HTTPS接口,提供由行政区划地名、行政区划编码查询中心点、轮廓、所属上级行政区划的功能。使用行政区划服务前您需要申请Key。 本接口需到天地图官网购买:http://lbs.tianditu.gov.cn/server/search.html
showapi_res_body
curl -X POST "https://connector.showapi.com/3021-7?appKey=YOUR_APPKEY" \ -H "content-type: application/x-www-form-urlencoded"
{ "showapi_res_error": "", "showapi_fee_num": 1, "showapi_res_code": 0, "showapi_res_id": "64116e150de376de4e656d33", "showapi_res_body": { "ret_code": 0, "remark": "请求成功", "returncode": "100", "data": [ { "parents": { "country": { "name": "中华人民共和国", "cityCode": "156000000", "adminType": "country" } }, "level": 11, "nameabbrevation": "北京", "name": "北京市", "cityCode": "156110000", "adminType": "province", "englishabbrevation": "BeiJing", "lnt": 116.71847, "english": "BeiJing Shi", "bound": "115.422051,40.978643,117.383319,39.455766", "lat": 39.903883 } ], "msg": "ok" } }
在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。
{ "mcpServers": { "showapi-mcp-3021": { "url": "http://www.showapi.com.cn/mcp/3021/{your_appKey}" } } }
标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。
客服热线请拨打
400-998-8033