On May 22, 3:27 pm, Eightlines <[email protected]> wrote:
>
> The coordinates I'm searching both in the Maps website and API: 37
> 56'49.51 N, 119 16'23.65 W
>
> Google Maps website translates this to: 37.947086, -119.273236
> API translates to: 38.077285, -118.952751
>
> From what I can see, the Google Maps website has the correct result.
> Nonetheless, shouldn't the API and website produce the same result?
No. If you attempt to geocode a coordinate, the API does a reverse
geocode. I think what you're getting is the centroid of the 93541
zipcode: the API finds an address for your coordinate ("California
93541, USA") and provides the location of that address (38.077285,
-118.952751).
If you want to do conversion, you need to write a routine to do that.
Don't consume geocoder resources. Especially since it doesn't do what
you want.
Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---