谷歌地理编码从谷歌地图返回完全不同的结果

时间:2013-08-26 03:25:07

标签: google-maps google-geocoding-api

的位置

澳大利亚维多利亚州Charles La Trobe P-12学院

谷歌地图生成了所述学院的确切位置。

但是,当通过GEOCODE API请求时 http://maps.googleapis.com/maps/api/geocode/json?address=Charles+La+Trobe+P-12+College,Victoria,Australia&sensor=false

或在他们的演示页面上 https://developers.google.com/maps/documentation/javascript/examples/geocoding-simple

上面的地址得到的结果远远不是确切的位置。

任何想法?

2 个答案:

答案 0 :(得分:2)

Google地图上的条目是“地点”,而不是地理编码结果。

Charles La Trobe P-12 College
235 Kingsbury Dr, Macleod Victoria 3085, Australia ‎
+61 3 9223 1400 ‎ · vic.edu.au 

Places API会找到correct location (as the first result)。地理编码器返回澳大利亚维多利亚州的结果(-37.4713077,144.7851531),这是您在给它的字符串中找到的最佳“地址”。

http://www.geocodezip.com/v3_example_geo2.asp?addr1=Charles%20La%20Trobe%20P-12%20College,Victoria,Australia&addr2=Charles%20La%20Trobe%20P-12%20College,Victoria,Australia&place=1&geocode=2

答案 1 :(得分:0)

在阅读了大量答案后,我遇到了这个解决方案, Gecoder 用于查找最近的邮政地址。要获取本地商户数据,请使用Google Places API

  

https://developers.google.com/places/web-service/search#PlaceSearchRequests

可以这样做

mi
相关问题