谷歌地理编码API不如谷歌地图使用地址准确 [英] google geocoding api not as accurate than google maps using address
问题描述
我有很多例子,谷歌地图返回的确切位置,而地理编码无法找到一个完全匹配,并提供了一个密切的匹配纬度/经度,这对我的目的是没有好处的
例如:谷歌地图中的1729 State road 8,auburn,IN 46706正好在沃尔玛的配送中心放置了它,因为它应该是这样。使用地理编码的b
$ b
...通过
http:// gmaps-samples。 googlecode.com/svn/trunk/geocoder/singlegeocode.html
或手动
有几英里之外的位置...
我不明白为什么差异我会说明地图使用地理编码等,许多例子在两者之间不匹配。我需要通过MAPS进行地理编码!
在阅读了很多答案之后,我发现了 Gecoder 用于查找最近的邮政地址。要使用Google Places API获取本地商户数据,请使用Google地图API。 $ b
https://developers.google.com/places/web-service/search#PlaceSearchRequests
可以这样做
https://maps.googleapis.com/maps/api/place/textsearch/json?query=someplacename&key=key
I have many examples where google maps returns the exact location whereas geocoding cannot find an exact match and provides only a close match lat/lon which is no good for my purpose.
example: "1729 state road 8, auburn, IN 46706" in google maps drops me exactly on a walmart distribution center as it should.
using geocoding.....either thru http://gmaps-samples.googlecode.com/svn/trunk/geocoder/singlegeocode.html
or manually
has the location several miles away...
I don't understand why the difference as I would expact MAPs to use geocoding etc, and many many examples don't match up between the two. I need to get geocoding via MAPS !
After reading through lot of answers i came across this solution that Gecoder is used to find the nearest postal addresses.To get Local Business Data use Google Places API
https://developers.google.com/places/web-service/search#PlaceSearchRequests
it can be done like this
https://maps.googleapis.com/maps/api/place/textsearch/json?query=someplacename&key=key
这篇关于谷歌地理编码API不如谷歌地图使用地址准确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!