This question is regarding the google Maps API geocoding, I'm able to geocode an address and show the location, but this works when the address is valid.
When it's not valid(there is an error),right now, I'm showing a smart message which says there is an error retrieving the location, but the requirement is to show the nearest possible location to the entered address.
How do I get the marker on next best location?
here's what I've tried:
Split the address, based on commas, and geocode each substring, and get the marker on the 1st match, but this resulted in some huge errors.
What I'm thinking of doing now is:
geocode the zip-code using yahoo maps API, but the only problem is I don't think it will be close to what the user has entered as his address.
Any solutions?