Sometime I get the status code 400 for reverse geocode result. But I am sure that there should be a address associated with the coordinate specified:
The Geo Code I used come from: http://maps.google.com/maps/geo?q=hin%20pui%20hourse&output=xml&key=my own key <?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name>hin pui hourse</name> <Status> <code>200</code> <request>geocode</request> </Status> <Placemark id="p1"> <address>Hin Keng Estate Hin Pui House, Hong Kong</address> <AddressDetails Accuracy="9" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL: 2.0"><Country><CountryNameCode>HK</CountryNameCode><CountryName>Hong Kong</CountryName><AddressLine>Hin Keng Estate Hin Pui House</ AddressLine></Country></AddressDetails> <Point><coordinates>114.1747291,22.3654188,0</coordinates></Point> </Placemark> <Placemark id="p2"> <address>Hin Keng Estate Hin Pui House, 69 Che Kung Miu Rd, Hong Kong</address> <AddressDetails Accuracy="9" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL: 2.0"><Country><CountryNameCode>HK</CountryNameCode><CountryName>Hong Kong</CountryName><Thoroughfare><ThoroughfareName>69 Che Kung Miu Rd</ ThoroughfareName></Thoroughfare><AddressLine>Hin Keng Estate Hin Pui House</AddressLine></Country></AddressDetails> <Point><coordinates>114.1747320,22.3654130,0</coordinates></Point> </Placemark> </Response></kml> The first coordinate: http://maps.google.com/maps/geo?ll=114.1747291%2C22.3654188&output=xml&key=my own key The second coordinate: http://maps.google.com/maps/geo?ll=114.1747320%2C22.3654130&output=xml&key=my own key The above two both get: <?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name></name> <Status> <code>400</code> <request>geocode</request> </Status> </Response></kml> Working coordiante: http://maps.google.com/maps/geo?ll=22.365465,114.174546&output=xml&key=my own key <?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name>22.365465,114.174546</name> <Status> <code>200</code> <request>geocode</request> </Status> <Placemark id="p1"> <address>Hin Keng St, New Territories, Hong Kong</address> <AddressDetails Accuracy="6" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL: 2.0"><Country><CountryNameCode>HK</CountryNameCode><CountryName>Hong Kong</CountryName><AdministrativeArea><AdministrativeAreaName>Hong Kong</ AdministrativeAreaName><SubAdministrativeArea><SubAdministrativeAreaName>Hong Kong</SubAdministrativeAreaName><Locality><LocalityName>New Territories</ LocalityName><DependentLocality><DependentLocalityName>Sha Tin</ DependentLocalityName><Thoroughfare><ThoroughfareName>Hin Keng St</ ThoroughfareName></Thoroughfare></DependentLocality></Locality></ SubAdministrativeArea></AdministrativeArea></Country></AddressDetails> <Point><coordinates>114.1752125,22.3653435,0</coordinates></Point> </Placemark> <Placemark id="p2"> <address>Sha Tin, Hong Kong</address> <AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL: 2.0"><Country><CountryNameCode>HK</CountryNameCode><CountryName>Hong Kong</CountryName><DependentLocality><DependentLocalityName>Sha Tin</ DependentLocalityName></DependentLocality></Country></AddressDetails> <Point><coordinates>114.1855505,22.3790108,0</coordinates></Point> </Placemark> <Placemark id="p3"> <address>Sha Tin District, Hong Kong</address> <AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL: 2.0"><Country><CountryNameCode>HK</CountryNameCode><CountryName>Hong Kong</CountryName><AdministrativeArea><AdministrativeAreaName>Hong Kong</ AdministrativeAreaName><SubAdministrativeArea><SubAdministrativeAreaName>Hong Kong</SubAdministrativeAreaName><Locality><LocalityName>Sha Tin District</LocalityName></Locality></SubAdministrativeArea></ AdministrativeArea></Country></AddressDetails> <Point><coordinates>114.1953448,22.3871528,0</coordinates></Point> </Placemark> <Placemark id="p4"> <address>New Territories, Hong Kong</address> <AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL: 2.0"><Country><CountryNameCode>HK</CountryNameCode><CountryName>Hong Kong</CountryName><AdministrativeArea><AdministrativeAreaName>Hong Kong</ AdministrativeAreaName><SubAdministrativeArea><SubAdministrativeAreaName>Hong Kong</SubAdministrativeAreaName><Locality><LocalityName>New Territories</LocalityName></Locality></SubAdministrativeArea></ AdministrativeArea></Country></AddressDetails> <Point><coordinates>114.2111189,22.4721614,0</coordinates></Point> </Placemark> <Placemark id="p5"> <address>Hong Kong, Hong Kong</address> <AddressDetails Accuracy="2" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL: 2.0"><Country><CountryNameCode>HK</CountryNameCode><CountryName>Hong Kong</CountryName><AdministrativeArea><AdministrativeAreaName>Hong Kong</AdministrativeAreaName></AdministrativeArea></Country></ AddressDetails> <Point><coordinates>114.2390498,22.3203365,0</coordinates></Point> </Placemark> </Response></kml> Does anyone know what wrong? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
