There seems to be a huge issue in the object that Google sends back when it comes to the short_name of cities. Every city in the world AFAIK has a unique short_code. E.g. Amsterdam is AMS, Buenos Aires is BA, New York is NY. This is the way they are tracked at airports and is how we can have a database agnostic identifier with which to map Google Map results against database city records. Unfortunately, Google Maps returns 'Amsterdam' as a short_name. I would see this as a bug, but it is probably a feature. Perhaps the short_name is not intended to hold the short_code.
Which begs the question: how to match against an existing database city record? Using the long_name or short_name is obviously out of the question. Any difference in label between Google and your own platform and it's over. The only thing I can think of, is to do a query on Google Maps based on just the city name in your database and the country and store the resulting longitude, latitude and use that as a match. Hell of a workaround if you ask me. No clue why the short_code isn't supplied. Perhaps someone can enlighten me on this subject? Kind regards, Marc -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
