2013-08-26 100 views
2

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

查尔斯拉筹伯P-12学院,维多利亚女王的位置,澳大利亚

谷歌地图产生所述高校的精确位置。

然而,当通过地址解析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

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

+0

有道理 - 谢谢! – ulysses