Possible Geocoder bug.

2 views
Skip to first unread message

jerrys

unread,
Oct 19, 2011, 3:06:54 PM10/19/11
to Google Earth API
I looked up a local address and then did.

alert(JSON.stringify(results));

This is what I saw.

[{"address_components":[{"long_name":"Market St","short_name":"Market
St","types":["route"]},{"long_name":"St Louis","short_name":"St
Louis","types":["locality","political"]},
{"long_name":"Missouri","short_name":"MO","types":
["administrative_area_level_1","political"]},{"long_name":"United
States","short_name":"US","types":
["country","political"]}],"formatted_address":"Market St, St Louis,
MO, USA","geometry":{"bounds":{"Z":{"b":38.624777,"d":38.633353},"$":
{"b":-90.24273299999999,"d":-90.18725799999999}},"location":{"Ma":
38.6310991,"Na":-90.2155047},"location_type":"GEOMETRIC_CENTER","viewport":
{"Z":{"b":38.624777,"d":38.633353},"$":
{"b":-90.24273299999999,"d":-90.18725799999999}}},"partial_match":true,"types":
["route"]}]


Based on the documentation,

http://code.google.com/apis/maps/documentation/geocoding/

I expected results.geometry.location. (lat and lng )
rather than
results.geometry.location. (Ma and Na )

I can certainly work with this but perhaps this could be a problem
down the road?
Reply all
Reply to author
Forward
0 new messages