here-api:获取定位API REST响应的地址
问题描述:
Good evening!
Is there any way to return in the REST response of the Positioning API the lat and long and the address in the same post request like below example:
{
"location": {
"lat": -23.554284,
"lng": -46.605026,
"accuracy": 526,
"address": "Rua Javari, Mooca, São Paulo, Microrregião de São Paulo, RMSP, Mesorregião Metropolitana de São Paulo, São Paulo, Southeast Region, 03112-100 , Brazil"
}
}
晚上好! p>
有没有办法在REST响应中返回 定位API的lat和long以及同一个帖子请求中的地址如下例所示: p>
{
“location”:{
“lat”: - 23.554284 ,
“lng”: - 46.605026,
“准确度”:526,
“地址”:“Rua Javari,Mooca,SãoPaulo,MicrorregiãodeSãoPaulo,RMSP,MesorregiãoMetropolitanadeSãoPaulo,SãoPaulo,Southeast Region,03112-100,Brazil“
}
}
code> pre>
div>
答
That is not possible. You can use the Geocoding API to get the address for the location returned by the Positioning API.