aslamdoctor
aslamdoctor

Reputation: 3935

How to solve the Difference between Google Maps and Geocoding?

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?

Upvotes: 2

Views: 1456

Answers (2)

Yaqub Ahmad
Yaqub Ahmad

Reputation: 27659

For the address you mentioned, the geocode is returning more than one results, you need to handle all the results. see your answer here.

EDIT: The Google Place search API can help you here, for more detail see this. Sample example is here at jsFiffle.

Upvotes: 0

geocodezip
geocodezip

Reputation: 161334

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

Upvotes: 2

Related Questions