Google Map GEO Results

Posted by Lee on Stack Overflow See other posts from Stack Overflow or by Lee
Published on 2010-01-25T20:19:03Z Indexed on 2010/03/22 14:51 UTC
Read the original article Hit count: 497

Filed under:
|
|

Hey All

I'm getting really frustrated with google geo results and hope someone can advise me the best was to go.

I have created a AutoSuggest feature where you can start typing the address and google will repspond with suggestions. User then selects and address to move on.

But before I want them to continue on the next page I want to validate their selection. I would have thought this will be easy as we are only checking against what google has already given. But when I do my validation lookup it displays no results.

Some example code:

Lets say I picked from the suggestion this address: Suffield, CT 06078, USA

Then on validation I do a second lookup with this address ie.

$string = "Suffield, CT 06078, USA";    
echo 'http://maps.google.com/maps/geo?output=json&oe=utf8&gl=us&sensor=false&key=[MyKey]&q='.urlencode($string).'';

It gives me Error code 602 (G_GEO_UNKNOWN_ADDRESS)

How can it not be found when its given me the address ??

Any suggestions how I can get around this.

Hope you can !

© Stack Overflow or respective owner

Related posts about google-maps

Related posts about map