如何解决谷歌地图和地理编码之间的差异? [英] How to solve the Difference between Google Maps and Geocoding?

查看:97
本文介绍了如何解决谷歌地图和地理编码之间的差异?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,这是一个奇怪的情况。这是我在很长时间内在我创建的很多地图上面临的问题。



以下是一个示例地址:

  Hotel Tamisa Golf,Camino Viejo deCoín,3,Mijas Costa,马拉加,29649,西班牙

如果我们去
maps.google.com
并搜索此地址,即可查看确切的Hotel Tamisa Golf。



但如果我们使用Google Map的Geocoding方法使用Google自己提供的这个例子,并在那边搜索这个地址,它显示的是完全不同的位置。几英里远离实际的位置。



http: //gmaps-samples.googlecode.com/svn/trunk/geocoder/singlegeocode.html



是否有解决此问题的方法,以便显示地图上的确切位置?

解决方案

该地址是地点而不是邮政地址。



地理编码器查找与邮政地址关联的坐标,看起来像是认为地址为UrbanizaciónMijas Golf,13S,29651 Mijas,Málaga,Spain:
< a href =http://www.geocodezip.com/v3_example_geo2.asp?addr1=Urbanizaci%C3%B3n%20Mijas%20Golf,%2013S,%2029651%20Mijas,%20M%C3%A1laga,%20Spain&geocode= 1& type = mrel =nofollow>地理编码



places API 找到places: place

OK here is an odd situation. This I have been facing from long time on so many Maps I have created.

Here is one sample address :

Hotel Tamisa Golf, Camino Viejo de Coín, 3, Mijas Costa, Málaga, 29649 , Spain

If we go to maps.google.com and search this address, it comes to the exact Hotel Tamisa Golf.

But if we use Google Map's Geocoding method using this Example provided By Google themselves, and search this address over there, it is showing totally different location. Some miles away from actual location.

http://gmaps-samples.googlecode.com/svn/trunk/geocoder/singlegeocode.html

Is there a way to fix this so that is should show the Exact location on Map?

解决方案

That "address" is a "place" not a "postal address".

The geocoder finds the coordinates associated with a postal address, looks like it thinks the address is "Urbanización Mijas Golf, 13S, 29651 Mijas, Málaga, Spain": geocode

The places API finds "places": place

这篇关于如何解决谷歌地图和地理编码之间的差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆