The geocoder cannot tell you if you have a typo. I agree with Saul's answer that it is best to check your request for a response.
I just wanted to point out that you would need to check multiple elements of your input for multiple response values ββto find elements that should match. In this case, "Beaverton" was found inside the "DependentLocalityName".
<?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name>Beverton, Ontario, Canada</name> <Status> <code>200</code> <request>geocode</request> </Status> <Placemark id="p1"> <address>Beaverton, Brock, ON, Canada</address> <AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>CA</CountryNameCode><CountryName>Canada</CountryName><AdministrativeArea><AdministrativeAreaName>ON</AdministrativeAreaName><SubAdministrativeArea><SubAdministrativeAreaName>Durham Regional Municipality</SubAdministrativeAreaName><Locality><LocalityName>Brock</LocalityName><DependentLocality><DependentLocalityName>Beaverton</DependentLocalityName></DependentLocality></Locality></SubAdministrativeArea></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="44.4502166" south="44.4183470" east="-79.1199562" west="-79.1839858" /> </ExtendedData> <Point><coordinates>-79.1519710,44.4342840,0</coordinates></Point> </Placemark> </Response></kml>
Update:
This may not be possible to implement. If your entry is Beverton, Ontario, Canada, how do you know which of the three words to check? Two of them will fit well. What if they are entered in a different order?
Chris b
source share