I'm trying to use GClientGeocoder in my application with the .getLatLng
(address:String, callback:function).
For a lot of a strings it turns out ok, but with some others it just
return random points.

ie.: "188 Avenida test, LONDRINA,PR, Brazil", wich doesn't exist I get
a LatLng = (-23.3103871, -51.1647943). In the end it just points out
at the middle of the city (LONDRINA).

Isn't it supposed to return 'null' ?
The application will be used by clients to search, filling the
required fields, and what i'm using to send the request is like the
following:



address = mapsLogradouroNmroInput.getValue() + " " +
mapsTipoLogradouroInput.getValue() + " " + mapsLogradouroInput.getValue
() + ", " + mapsLogradouroCidadeInput.getValue() + ",PR, Brazil";
gmapTeste.getLatLng(address,
function(point){
        if (!point){
                alert(address + " not found");
        } else {
                if (marker.isHidden()==false){
                        gmap.removeOverlay(marker);
                }
                gmap.setCenter(point, gmap.getZoom());
                marker.setLatLng(point);
                gmap.addOverlay(marker);
                marker.openInfoWindowHtml(address);

         }
});


Is there's a more accurate way to use something like that? Since this
will be used by client, then i was thinking to use the 'null' response
if the address wasn't found.

--~--~---------~--~----~------------~-------~--~----~
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