OK, maybe not weird but curious.

When I geocode addresses, I get some results that are odd to me.  For
example, when I look up "Paris", I get one result.  Paris France.
Fine.  However, there is a Paris, KY USA too.  Obviously not a
sprawling city (lol) but still, it's a city named Paris.

Now, there is another little town near where I live called "Dunlap".
I search for Dunlap and I get NINE results.  All from different
states.  Cool I think.  But why give so many more choices for such a
small town and only one for a large one?

Plus, here is another one.  I can search for "Disney World" and sure
enough, one result near Orlando as I would expect.  But searching for
"SeaWorld" give me this:

1) Sea Pl, Brooklyn, NY 11224, USA
2) Sea Myrtle, Houston, TX 77095, USA
3) Sea and Land Church, New York, NY 10002, USA


Now, searching for "SeaWorld FL" give me:

1) Sea Pines Cir E, Clearwater, FL 33761, USA
2) Sea Pines Cir W, Clearwater, FL 33761, USA
3) Sea Front Ct, Clearwater, FL 33763, USA
4) Sea Wind Way, Clearwater, FL 33763, USA


But searching for "SeaWorld Florida" give me these results:
1) Seaworld Orlando, Orlando, FL 32821, USA
2) SeaWorld Orlando


I am using V3 of the API and this code to find the address.

[code]
function geoCodeAddress(address) {
        $("#spinner").show();
        if(geocoder){
                geocoder.geocode( { 'address': address, 'language':'en'},
function(results, status) {
                switch(status)
                {
                        case google.maps.GeocoderStatus.OK:
                                showSuggestedDestinations(results);
                                break;

                        case google.maps.GeocoderStatus.ZERO_RESULTS:
                                setOutputHTML('<h3>Sorry, ' + address + ' 
returned no results.</
h3><h4>Please check your spelling.</h4>');
                                document.getElementById("address").focus();
                                break;

                        case google.maps.GeocoderStatus.INVALID_REQUEST:
                                setOutputHTML("<h3>Please check your spelling 
or location again.</
h3>");
                                break;

                        default:
                                setOutputHTML("<h3>Sorry, there was a problem 
finding that
location.  Please check your spelling.</h3>");
                                break;
                }
                });
        }
[/code]

Any ideas on the results?  I could see my users typing in either of
those for SeaWorld.

Thanks for any suggestions or tips.

Have a great day!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to