On Sep 18, 8:08 am, Átila Canavezi <[email protected]> wrote: > 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).
http://www.geocodezip.com/example_geo2.asp?add1=188%20Avenida%20test,%20LONDRINA,PR,%20Brazil&geocode=1 Gives me this: "Accuracy": 6 "Point": { "coordinates": [ -71.947133, 45.402226, 0 ] http://code.google.com/apis/maps/documentation/reference.html#GGeoAddressAccuracy 6 Street level accuracy. You probably want accuracy 8 or 9. -- Larry > > 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 -~----------~----~----~----~------~----~------~--~---
