### [地图服务接口](https://s.ddm.chat/link/716) **Published:** 2026-07-23T02:00:22 **Author:** 颠倒梦 **Excerpt:** Amap的MCP Server提供12种核心地图服务接口,包括地理编码、逆地理编码、IP定位、天气查询、路线规… ## 产品介绍 为了实现LBS服务和LLM之间更好的交互,Amap的MCP服务器现在覆盖了12个核心服务接口,为所有场景提供全面的地图服务,包括地理编码、反向地理编码、IP定位、天气查询、自行车路线规划、步行路线规划、驾驶路线规划、公共交通路线规划、距离测量、关键字搜索、附近搜索和细节搜索。 为了进一步提高开发人员的访问效率和体验,Amap开放平台为开发人员提供了 [通用级SSE协议](https://lbs.amap.com/api/mcp-server/gettingstarted) MCP服务解决方案。 ## Amap开放平台通用级SSE协议MCP服务解决方案 #### 产品架构图 #### 什么是SSE? 服务器发送事件(SSE)是一种基于HTTP协议的技术,允许服务器以单向和实时的方式向客户端推送数据。在SSE模式下,开发人员可以通过在客户端创建EventSource对象来与服务器建立持久连接。然后,服务器通过此连接连续发送数据流,而客户端不需要重复发送请求。 #### 产品特点 - 易于使用:适用于基于MCP(SSE)模式的普通用户,无需部署本地服务,只需配置URL地址即可使用。 - 自动升级:我们将继续迭代和更新,无需用户进行任何额外操作。 - 更容易理解LLM:我们对原始JSON结果进行了语义转换,使LLM更容易理解内容。 - 零维护成本:采用完全托管的云服务架构,因此用户不需要担心服务器维护、资源扩展和其他潜在的运营问题。 - 协议兼容性:支持SSE长连接,以满足不同业务场景的技术需求。 访问 [快速访问](https://lbs.amap.com/api/mcp-server/gettingstarted) 了解如何访问MCP服务器SSE服务的文档。 ## 能力介绍 #### 地理编码 将详细的结构化地址转换为纬度和经度坐标。 | | | | --- | --- | | Input | address (location information), city (city information, optional) | | Output | location (latitude and longitude) | #### 反向地理编码 将Amap经纬度坐标转换为行政区地址信息。 | | | | --- | --- | | Input | location (latitude and longitude) | | Output | addressComponent (location information, including province, city, district, etc.) | #### IP位置 IP位置根据用户提供的IP地址确定IP的位置。 | | | | --- | --- | | Input | IP | | Output | province (province), city (city), adcode (city code) | #### 天气查询 根据城市名称或标准广告码查询指定城市的天气。 | | | | --- | --- | | Input | city (city name or city adcode) | | Output | forecasts (weather forecasts) | #### 自行车路线规划 用于规划自行车通勤路线,考虑天桥、单行道、道路封闭等。支持长达500公里的自行车路线规划。 | | | | --- | --- | | Input | origin (start latitude and longitude), destination (end latitude and longitude) | | Output | distance (planned distance), duration (planned time), steps (planned step information) | #### 步行路线规划 根据输入的起点和终点经纬度坐标,规划100公里内的步行通勤路线,并返回通勤计划的数据。 | | | | --- | --- | | Input | origin (start latitude and longitude), destination (end latitude and longitude) | | Output | origin (start information), destination (end information), paths (planned specific information) | #### 行车路线规划 根据用户的起点和终点经纬度坐标,规划小型汽车和轿车的通勤出行解决方案,并返回通勤计划数据。 | | | | --- | --- | | Input | origin (start latitude and longitude), destination (end latitude and longitude) | | Output | origin (start information), destination (end information), paths (planned specific information) | #### 公共交通线路规划 根据用户的起点和终点经纬度坐标,规划整合各种公共交通方式(火车、公共汽车、地铁)的通勤解决方案,并返回通勤计划数据。对于跨城市场景,必须提供起始城市和结束城市。 | | | | --- | --- | | Input | origin (start latitude and longitude), destination (end latitude and longitude), city (start city), cityd (end city) | | Output | origin (start information), destination (end information), distance (planned distance), transits (planned specific information) | #### 距离测量 测量两个纬度和经度坐标之间的距离。 | | | | --- | --- | | Input | origin (start latitude and longitude), destination (end latitude and longitude) | | Output | origin\_id (start information), dest\_id (end information), distance (planned distance), duration (time) | #### 关键字搜索 基于用户提供的关键字搜索相关POI位置信息。 | | | | --- | --- | | Input | keywords (search keywords), city (query city, optional) | | Output | suggestion (search suggestion), pois (location information list) | #### 附近搜索 基于用户提供的关键字和位置坐标在半径内搜索POI位置信息。 | | | | --- | --- | | Input | keywords (search keywords), location (central latitude and longitude), radius (search radius, optional) | | Output | pois (location information list) | #### 详细信息搜索 查询从关键字搜索或附近搜索中获得的POI ID的详细信息。 | | | | --- | --- | | Input | id (POI ID obtained from keyword search or nearby search) | | Output | Location detail information

location (latitude and longitude), address, business\_area (business district), city, type (location type), etc. | ---