百度地图 API
使用准备
服务状态码
地点
地点检索及联想
服务概览
行政区划区域检索
GET
多边形区域检索
GET
圆形区域检索
GET
地点详情检索
GET
地点输入提示
GET
地理编码
地理编码
GET
全球逆地理编码
服务概览
全球逆地理编码
GET
逆地理编码智能体
GET
坐标转换
服务概览
坐标转换
GET
地址解析聚合
服务概览
地址解析聚合
GET
城乡类型判别
服务概览
城乡类型判别
GET
时区
服务概览
时区
GET
推荐上车点
路线
服务概览
轻量级路线规划
GET
骑行路线规划
GET
步行路线规划
GET
公交路线规划
GET
货车路线规划
GET
批量算路
驾车批量算路
GET
骑行批量算路
GET
步行批量算路
GET
摩托车批量算路
GET
货车批量算路
GET
物流路⽹计算
物流路⽹创建
POST
物流路网查询
GET
逆地理编码智能体开发中
GET/reverse_geocoding/agent?ak=E4805d16******93a3fe70&location=40.014523,116.309781&coordtype=bd09ll&ret_coordtype=gcj02ll&demand=我在打车,告诉司机我现在的位置;用附近打卡最多的餐厅描述我的位置;
创建时间: 2025-06-02 21:09
请求参数
Query 参数
参数名 | 示例值 | 是否必填 | 参数类型 | 描述说明 |
---|---|---|---|---|
ak | E4805d16******93a3fe70 | 是 | string | 用户申请注册的key,自v2开始参数修改为“ak”,之前版本参数为“key” |
location | 40.014523,116.309781 | 是 | string | 根据经纬度坐标获取地址。 |
coordtype | bd09ll | 是 | string | 传入的坐标类型,目前支持的坐标类型包括:bd09ll(百度经纬度坐标)、bd09mc(百度米制坐标)、gcj02ll(国测局经纬度坐标,仅限中国)、wgs84ll( GPS经纬度) |
ret_coordtype | gcj02ll | 是 | string | 返回的坐标类型,可选参数,添加后返回国测局经纬度坐标或百度米制坐标 |
demand | 我在打车,告诉司机我现在的位置;用附近打卡最多的餐厅描述我的位置; | 是 | string | 用户的需求描述(可以加入对场景,偏好等描述,提升解析的精准度和匹配度,返回更贴合实际需求的结果) |
响应示例
成功返回地址信息
HTTP状态码:500
内容格式:application/json
数据结构
statusinteger
可选
本次API访问状态,如果成功返回0,如果失败返回其他数字。
resultobject
可选
locationobject
可选
lngfloat
可选
经度值
latfloat
可选
纬度值
addressComponentobject
可选
countrystring
可选
国家
adcodeinteger
可选
行政区划代码
provincestring
可选
省名
citystring
可选
城市名
districtstring
可选
区县名
townstring
可选
乡镇名
town_codestring
可选
乡镇id
villagestring
可选
社区、村
village_codestring
可选
社区、村id
streetstring
可选
道路名
street_numberstring
可选
道路门牌号
directionstring
可选
相对当前坐标点的方向
distancestring
可选
相对当前坐标点的距离
business_infoarray<object>
可选
namestring
可选
商圈名称
locationobject
可选
lngfloat
可选
经度值
latfloat
可选
纬度值
distancestring
可选
参考位置到输入坐标的直线距离
directionstring
可选
参考位置到输入坐标的方位关系
roadsarray<object>
可选
namestring
可选
周边道路名称
distancestring
可选
传入的坐标点距离道路的大概距离
directionstring
可选
输入点和道路的相对方向
locationstring
可选
坐标点
poiRegionsarray<object>
可选
direction_descstring
可选
请求中的坐标与所归属区域面的相对位置关系
namestring
可选
归属区域面名称
tagstring
可选
归属区域面类型
distancestring
可选
离坐标点距离
uidstring
可选
poi唯一标识
recommend_reasonstring
可选
大模型推荐的原因
recommend_address_poistring
可选
大模型推荐的结构化地址(包含POI信息)
poisarray<object>
可选
addrstring
可选
地址信息
directionstring
可选
和当前坐标点的方向
distancestring
可选
离坐标点距离
namestring
可选
poi名称
tagstring
可选
poi类型
pointobject
可选
xfloat
可选
经度值
yfloat
可选
纬度值
telstring
可选
电话
uidstring
可选
poi唯一标识
响应示例
{
"status": 0,
"result": {
"location": {
"lng": 116.51484487904993,
"lat": 39.95133518263271
},
"addressComponent": {
"country": "中国",
"country_code": 0,
"country_code_iso": "CHN",
"country_code_iso2": "CN",
"province": "北京市",
"city": "北京市",
"city_level": 2,
"district": "朝阳区",
"town": "东风(地区)乡",
"town_code": "110105030",
"adcode": "110105",
"street": "东坝路",
"street_number": ""
},
"business_info": [
{
"name": "姚家园",
"location": {
"lng": 116.5085279048735,
"lat": 39.94628680620237
},
"adcode": 110105,
"distance": 0,
"direction": "内"
}
],
"roads": [
{
"name": "东坝路",
"distance": "182",
"direction": "西北",
"location": {
"lng": 116.51618607030609,
"lat": 39.94998794222986
}
},
{
"name": "朝阳站路",
"distance": "193",
"direction": "南",
"location": {
"lng": 116.51441450621228,
"lat": 39.95305567757272
}
}
],
"poiRegions": [
{
"direction_desc": "内",
"name": "北京朝阳站",
"tag": "交通设施;火车站",
"uid": "e4728174d1f54500acb22a87",
"distance": "0"
}
],
"pois": [
{
"addr": "东坝路朝阳站2层7-2号",
"cp": " ",
"direction": "附近",
"distance": "43",
"name": "永和大王(北京朝阳站店)",
"poiType": "美食",
"point": {
"lng": 0,
"lat": 0
},
"tag": "美食;快餐店",
"tel": "",
"uid": "f9d184332acef8946240a94b",
"zip": "",
"popularity_level": "9",
"aoi_name": "姚家园",
"parent_poi": {
"addr": "北京市朝阳区姚家园北路",
"cp": "",
"direction": "附近",
"distance": "0",
"name": "北京朝阳站",
"poiType": "",
"point": {
"lng": 0,
"lat": 0
},
"tag": "交通设施;火车站",
"tel": "",
"uid": "e4728174d1f54500acb22a87",
"zip": "",
"popularity_level": "9",
"aoi_name": ""
}
},
{
"addr": "北京市朝阳区姚家园北路",
"cp": "",
"direction": "内",
"distance": "0",
"name": "北京朝阳站",
"poiType": "交通设施",
"point": {
"lng": 0,
"lat": 0
},
"tag": "交通设施;火车站",
"tel": "",
"uid": "e4728174d1f54500acb22a87",
"zip": "",
"popularity_level": "1",
"aoi_name": "",
"parent_poi": {
"addr": "",
"cp": "",
"direction": "",
"distance": "",
"name": "",
"poiType": "",
"point": {
"lng": 0,
"lat": 0
},
"tag": "",
"tel": "",
"uid": "",
"zip": "",
"popularity_level": "",
"aoi_name": ""
}
},
{
"addr": "北京市朝阳区姚家园北路北京朝阳站",
"cp": " ",
"direction": "北",
"distance": "63",
"name": "北京朝阳站-北地下停车场",
"poiType": "交通设施",
"point": {
"lng": 0,
"lat": 0
},
"tag": "交通设施;停车场",
"tel": "",
"uid": "0ad3bd5cf7e90bf5601c67d1",
"zip": "",
"popularity_level": "9",
"aoi_name": "姚家园",
"parent_poi": {
"addr": "北京市朝阳区姚家园北路",
"cp": "",
"direction": "附近",
"distance": "0",
"name": "北京朝阳站",
"poiType": "",
"point": {
"lng": 0,
"lat": 0
},
"tag": "交通设施;火车站",
"tel": "",
"uid": "e4728174d1f54500acb22a87",
"zip": "",
"popularity_level": "9",
"aoi_name": ""
}
},
{
"addr": "朝阳站东路与姚家园北路交叉口西200米",
"cp": " ",
"direction": "东北",
"distance": "61",
"name": "好邻居(东坝路店)",
"poiType": "购物",
"point": {
"lng": 0,
"lat": 0
},
"tag": "购物;便利店",
"tel": "",
"uid": "2023cae5acae945225d2bba8",
"zip": "",
"popularity_level": "8",
"aoi_name": "姚家园",
"parent_poi": {
"addr": "北京市朝阳区姚家园北路",
"cp": "",
"direction": "附近",
"distance": "0",
"name": "北京朝阳站",
"poiType": "",
"point": {
"lng": 0,
"lat": 0
},
"tag": "交通设施;火车站",
"tel": "",
"uid": "e4728174d1f54500acb22a87",
"zip": "",
"popularity_level": "9",
"aoi_name": ""
}
},
{
"addr": "北京市朝阳区姚家园北路",
"cp": " ",
"direction": "西南",
"distance": "140",
"name": "北京朝阳站北3地上停车场-东出口",
"poiType": "出入口",
"point": {
"lng": 0,
"lat": 0
},
"tag": "出入口;停车场出口",
"tel": "",
"uid": "786496f7b9f33455e607388e",
"zip": "",
"popularity_level": "1",
"aoi_name": "姚家园",
"parent_poi": {
"addr": "北京市朝阳区姚家园北路北京朝阳站",
"cp": "",
"direction": "南",
"distance": "149",
"name": "北京朝阳站-北3地上停车场",
"poiType": "",
"point": {
"lng": 0,
"lat": 0
},
"tag": "交通设施;停车场",
"tel": "",
"uid": "e30929fe744727baf90cad71",
"zip": "",
"popularity_level": "9",
"aoi_name": ""
}
},
{
"addr": "北京市朝阳区姚家园北路",
"cp": " ",
"direction": "东南",
"distance": "143",
"name": "北京朝阳站北3地上停车场-西入口",
"poiType": "出入口",
"point": {
"lng": 0,
"lat": 0
},
"tag": "出入口;停车场入口",
"tel": "",
"uid": "b2fe90fa6f1499ea3f9a5e5d",
"zip": "",
"popularity_level": "6",
"aoi_name": "姚家园",
"parent_poi": {
"addr": "北京市朝阳区姚家园北路北京朝阳站",
"cp": "",
"direction": "南",
"distance": "149",
"name": "北京朝阳站-北3地上停车场",
"poiType": "",
"point": {
"lng": 0,
"lat": 0
},
"tag": "交通设施;停车场",
"tel": "",
"uid": "e30929fe744727baf90cad71",
"zip": "",
"popularity_level": "9",
"aoi_name": ""
}
},
{
"addr": "华文东路与辛庄街交叉口北280米",
"cp": " ",
"direction": "北",
"distance": "75",
"name": "OurHours全时(姚家园店)",
"poiType": "购物",
"point": {
"lng": 0,
"lat": 0
},
"tag": "购物;便利店",
"tel": "",
"uid": "a9a896fbe13c6c453913fdd1",
"zip": "",
"popularity_level": "6",
"aoi_name": "姚家园",
"parent_poi": {
"addr": "北京市朝阳区姚家园北路",
"cp": "",
"direction": "附近",
"distance": "0",
"name": "北京朝阳站",
"poiType": "",
"point": {
"lng": 0,
"lat": 0
},
"tag": "交通设施;火车站",
"tel": "",
"uid": "e4728174d1f54500acb22a87",
"zip": "",
"popularity_level": "9",
"aoi_name": ""
}
},
{
"addr": "北京市朝阳区姚家园北路北京朝阳站",
"cp": " ",
"direction": "南",
"distance": "149",
"name": "北京朝阳站-北3地上停车场",
"poiType": "交通设施",
"point": {
"lng": 0,
"lat": 0
},
"tag": "交通设施;停车场",
"tel": "",
"uid": "e30929fe744727baf90cad71",
"zip": "",
"popularity_level": "9",
"aoi_name": "姚家园",
"parent_poi": {
"addr": "北京市朝阳区姚家园北路",
"cp": "",
"direction": "附近",
"distance": "0",
"name": "北京朝阳站",
"poiType": "",
"point": {
"lng": 0,
"lat": 0
},
"tag": "交通设施;火车站",
"tel": "",
"uid": "e4728174d1f54500acb22a87",
"zip": "",
"popularity_level": "9",
"aoi_name": ""
}
},
{
"addr": "姚家园北路附近北京朝阳站B1层",
"cp": " ",
"direction": "北",
"distance": "81",
"name": "麦叔的铺子(北京朝阳站)",
"poiType": "购物",
"point": {
"lng": 0,
"lat": 0
},
"tag": "购物;超市",
"tel": "",
"uid": "7405ae3d0e49fdd3acee7a52",
"zip": "",
"popularity_level": "7",
"aoi_name": "姚家园",
"parent_poi": {
"addr": "",
"cp": "",
"direction": "",
"distance": "",
"name": "",
"poiType": "",
"point": {
"lng": 0,
"lat": 0
},
"tag": "",
"tel": "",
"uid": "",
"zip": "",
"popularity_level": "",
"aoi_name": ""
}
},
{
"addr": "姚家园北路朝阳火车站候车大厅",
"cp": " ",
"direction": "附近",
"distance": "17",
"name": "西少爷(朝阳站店)",
"poiType": "美食",
"point": {
"lng": 0,
"lat": 0
},
"tag": "美食;快餐店",
"tel": "",
"uid": "1d8e44ab7ba96ad43517dc66",
"zip": "",
"popularity_level": "9",
"aoi_name": "姚家园",
"parent_poi": {
"addr": "北京市朝阳区姚家园北路",
"cp": "",
"direction": "附近",
"distance": "0",
"name": "北京朝阳站",
"poiType": "",
"point": {
"lng": 0,
"lat": 0
},
"tag": "交通设施;火车站",
"tel": "",
"uid": "e4728174d1f54500acb22a87",
"zip": "",
"popularity_level": "9",
"aoi_name": ""
}
}
],
"recommend_reason": "永和大王(Beijing Chaoyang Station)距离用户仅43m,是最近的美食类POI。",
"recommend_address_poi": "北京市朝阳区东风(地区)乡永和大王(北京朝阳站店)(附近方向43米)"
}
}
最后更新: -