Gaode SDK for Python, which based on https://lbs.amap.com/api/webservice/summary/
pip install gaode
All API supported! please visit Supported methods for more information!
from gaode import Gaode
token = "TOKEN"
word = "饸饹"
gd = Gaode(token)
ret = gd.place_text(word=word) # Limited to use `keyword arguments`
{
"count": "0",
"info": "OK",
"infocode": "10000",
"pois": [],
"status": "1",
"suggestion": {
"cities": [
{
"name": "西安市",
"num": "1849"
},
...
],
"keywords": []
}
}