Ae · Amap · Maps · Get · V3 · Staticmap

1.00积分/次
ae_amap_maps_get_v3_staticmap

生成包含自定义标记、标签和路线的静态地图图片。

地图图像
1.00积分/次

价格说明

1.00积分/次

API 调用

通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。

cURL
curl --request POST \
  --url 'https://api.agentearth.ai/v1/tools/run' \
  --header 'Authorization: Bearer $AGENTEARTH_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "tool": "ae_amap_maps_get_v3_staticmap",
  "input": {
    "size": "400*400",
    "zoom": "xxx",
    "paths": "xxx",
    "scale": "1",
    "labels": "xxx",
    "markers": "xxx",
    "traffic": "0",
    "location": "xxx"
  }
}'
请求方式
POST
接口地址
/v1/tools/run
鉴权方式
Bearer Token
超时时间
60 秒
当前版本
—
响应示例
{
  "error_no": 0,
  "error_msg": "",
  "result": [
    {
      "type": "text",
      "text": "xxx"
    }
  ],
  "platform_annotations": {
    "source": "AgentEarth",
    "platform_note": "xxx",
    "platform_suggestion": "xxx"
  }
}

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
sizestring否地图大小 图片宽度*图片高度。最大值为1024*1024400*400
zoomstring否地图级别 地图缩放级别:[1,17] 注意:该参数在 schema 中定义为 string,即使含义是数字或数字枚举,也请按字符串传入,例如 "1"、"20",不要传裸数字 1、20。—
pathsstring否折线 使用规则见paths详细说明,折线和多边形最大数4个—
scaleenum (1 | 2)否普通/高清 1:返回普通图; 2:调用高清图,图片高度和宽度都增加一倍,zoom也增加一倍(当zoom为最大值时,zoom不再改变)。 注意:该参数在 schema 中定义为 string;请按字符串枚举传入,例如 "0"、"1",不要传裸数字 0、1。1
labelsstring否标签 使用规则见labels详细说明,标签最大数10个—
markersstring否标注 使用规则见markers详细说明,标注最大数10个—
trafficenum (0 | 1)否交通路况标识 底图是否展现实时路况。 可选值: 0,不展现;1,展现。 注意:该参数在 schema 中定义为 string;请按字符串枚举传入,例如 "0"、"1",不要传裸数字 0、1。0
locationstring否地图中心点 中心点坐标。 规则:经度和纬度用","分隔 经纬度小数点后不得超过6位。—