On Mar 16, 3:54 pm, Michael Burton <[email protected]> wrote: > Just thought I'd check in and see if anyone has any ideas about the > unexpected data I'm getting in Taiwan (see below). Any ideas?
What country would you expect it to be? People's Republic of China (PRC) or Republic of China (ROC) -- Larry > > Cheers, > Mike > > On Mar 10, 5:01 pm, Michael Burton <[email protected]> wrote: > > > Hello, > > > I'm trying to use the google maps API to lookup Taipei, but I'm > > getting back unexpected results. > > > Here's the URL that I'm requesting (substitute your own api key): > > >http://maps.google.com/maps/geo?q=Taipei&output=json&key=<my api key> > > > And here's the JSON I get back: > > > { > > "name": "Taipei", > > "Status": { > > "code": 200, > > "request": "geocode" > > }, > > "Placemark": [ { > > "id": "p1", > > "address": "Taipei City,Taiwan", > > "AddressDetails": {"AdministrativeArea": > > {"AdministrativeAreaName": "Taipei City"},"Accuracy": 3}, > > "ExtendedData": { > > "LatLonBox": { > > "north": 25.2103040, > > "south": 24.9605090, > > "east": 121.6659420, > > "west": 121.4570600 > > } > > }, > > "Point": { > > "coordinates": [ 121.5598345, 25.0910750, 0 ] > > } > > } ] > > > } > > > Unlike nearly every single other location I can think to look up, > > Taipei is not coming back with a Country element in the AddressDetails > > (even though "Taiwan" is mentioned in the address string). Look up > > San Francisco, New York, Tokyo, Lhasa, Buenos Aires, etc. etc. and > > they all have a Country. > > > Seems to happen whether I'm using JSON or KML, or presumably other > > output formats. Also doesn't seem to matter whether I say "Taipei" or > > "TaipeiTaiwan" or "臺北市" > > > Does anyone know why this might be? > > > Cheers, > > Mike --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
