Google GeoCoding API - 返回ZERO_RESULTS,但位置显示在Google地图上 [英] Google GeoCoding API - returns ZERO_RESULTS but the location shows on Google Maps
问题描述
我使用Google GeoCode API从地址搜索位置,并获取该位置的LAT,LON信息。
在API中,我总是得到 ZERO_RESULTS
,就好像我从Google地图中搜索地址一样,它显示了我位置
我搜索的地址是,
5989 Route 6N,Edinboro ,宾夕法尼亚州,16412,美国
以下给出的是我发送给Google API的请求,
https://maps.googleapis.com/maps/api/geocode/json?address=5989%20Route%206N%20Edinboro%20Pennsylvania%20United%20States%2016412&key= {{API_KEY}}
任何人都可以帮我解决这个问题吗?感谢!
这是Geocoding API中的一个问题: Issue 11031 。
截至本周,Geocoding API将始终返回与Google地图相同的结果:
formatted_address:5989 Route 6n,Edinboro,PA 16412,USA,
I am using Google GeoCode API to search a location from an address and get LAT, LON information of that location.
From the API I always get ZERO_RESULTS
where as if I search the address from the Google Maps, It shows me the location
The address I search for is,
5989 Route 6N, Edinboro, Pennsylvania, 16412, United States
Below given is the request that I sent to Google API,
https://maps.googleapis.com/maps/api/geocode/json?address=5989%20Route%206N%20Edinboro%20Pennsylvania%20United%20States%2016412&key={{API_KEY}}
Can anyone help me on resolving this?
Thanks!
This was an issue in the Geocoding API: Issue 11031.
It has been fixed as of this week, so that Geocoding API will always return the same result/s as Google Maps:
"formatted_address" : "5989 Route 6n, Edinboro, PA 16412, USA",
这篇关于Google GeoCoding API - 返回ZERO_RESULTS,但位置显示在Google地图上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!