天天看点

python调用高德地图api获得poi

高德地图开发指南的一些调用api文档在这个网址

https://lbs.amap.com/api/webservice/guide/api/newpoisearch
           

周边搜索 API 服务地址(get请求)

https://restapi.amap.com/v5/place/around?parameters

地理编码 API 服务地址(get请求)

htmlhttps://restapi.amap.com/v3/geocode/geo?parameters

步行路径规划API URL(get请求)

https://restapi.amap.com/v3/direction/walking?parameters
           

骑行路径规划API URL(get请求)

https://restapi.amap.com/v4/direction/bicycling?parameters
           

代码如下

import requests
import json


def current_location(key