On Aug 19, 5:26 pm, Sise <[email protected]> wrote: > If this is the wrong Forum, please direct me to the right one. > > When I use the API as shown below, I get the XML that follows: > > http://maps.googleapis.com/maps/api/geocode/xml?address="500+New+Jersey+36+Eatontown,+NJ+07724"&sensor=false > > <GeocodeResponse> > ............. (removed for clarity -- u get the gist) > <formatted_address>500 State Highway 36, Eatontown, NJ 07724, USA</ > formatted_address> > ............. (removed for clarity -- u get the gist) > <location> > <lat>40.2907166</lat> > <lng>-74.0415471</lng> > </location> > ............. (removed for clarity -- u get the gist) > </GeocodeResponse> > > But when I use same API for Reverse Geo, I get an error, NO RESULTS > returned as show: > > http://maps.googleapis.com/maps/api/geocode/xml?latlng="40.2907166,-74.0415471"&sensor=true > > <GeocodeResponse> > <status>ZERO_RESULTS</status> > </GeocodeResponse> > > I even tried the lat and long we have in our database for that address > and I get same result as shown: > > http://maps.googleapis.com/maps/api/geocode/xml?latlng="40.290724, > -74.042013"&sensor=true > > <GeocodeResponse> > <status>ZERO_RESULTS</status> > </GeocodeResponse> > > When I use the Google Maps on the Browser for the lat and long's > above, I get the right address... > > Does anyone know why?
Not really. Looks like those coordinates return: http://www.geocodezip.com/example_geo2.asp?addr1=40.290724,-74.042013&geocode=1 500 State Highway 36, Eatontown, NJ 07724, USA (40.2907166, -74.0415471) in the v2 API reverse geocoder. Why do you have the quotes in your query string? If I remove them, it works for me: http://maps.googleapis.com/maps/api/geocode/xml?latlng=40.2907166,-74.0415471&sensor=false -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
