http://maps.google.com/maps/geo?q=Lake+District&output=xml

Returns

<kml>
-
<Response>
<name>Lake District</name>
-
<Status>
<code>200</code>
<request>geocode</request>
</Status>
-
<Placemark id="p1">
<address>The Lake District, Cumbria, UK</address>
-
<AddressDetails Accuracy="9">
<AddressLine>The Lake District</AddressLine>
</AddressDetails>
-
<ExtendedData>
<LatLonBox north="54.7032285" south="54.2885045" east="-2.5282818"
west="-3.5527570"/>
</ExtendedData>
-
<Point>
<coordinates>-3.0405194,54.4963925,0</coordinates>
</Point>
</Placemark>
-
<Placemark id="p2">
<address>Lake, Wundwin, Myanmar</address>
-
<AddressDetails Accuracy="4">
-
<Country>
<CountryNameCode>MM</CountryNameCode>
<CountryName>Myanmar</CountryName>
-
<AdministrativeArea>
<AdministrativeAreaName>Mandalay</AdministrativeAreaName>
-
<SubAdministrativeArea>
<SubAdministrativeAreaName>Meiktila</SubAdministrativeAreaName>
-
<Locality>
<LocalityName>Wundwin</LocalityName>
<AddressLine>Lake</AddressLine>
</Locality>
</SubAdministrativeArea>
</AdministrativeArea>
</Country>
</AddressDetails>
-
<ExtendedData>
<LatLonBox north="20.9836042" south="20.9773090" east="95.9381949"
west="95.9318996"/>
</ExtendedData>
-
<Point>
<coordinates>95.9350268,20.9808873,0</coordinates>
</Point>
</Placemark>
</Response>
</kml>


Take the two letters from the right, convert from UK to GBR and
process. Or just use the Google Maps Javascript API which returns Lake
District/lat,long/GB and convert it to ALPHA-2/3 format for your use.



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to