Hey Rossko, thank you for the reply. Maybe I'm just confused...
On Jun 8, 8:46 pm, Rossko <[email protected]> wrote: > > Now when I go over London, England I get really confusing results. > > Instead of the city being London, the geocoder tells me that it is > > either great london, lambeth or another boroughs of london. > > > There is one area of 1-2 square km that is mapped to London, > > everything else is not london for the geocoder. > > That's postal addresses for you. The City of London is famously one > square mile, right next door to the City of Westmisnster. All are > within Greater London which has many other boroughs etc. etc. > I'm reading the api docs and it says: locality indicates an incorporated city or town political entity. So I moved my marker to Islington and the response from google geocoder contains Islington as the locality. Greater London is set as the administrative_area_level_2. Shouldn't the locality be London instead of Islington? Islington is borough of London and not the city itself(locality)... I went to a city in Germany that I know very well and started to move the marker around. When I was moving the marker to suburbs of the city the locality returned from the google geocoder was still the name of the city. > > So my question here is - am I supposed to look for the city/zip/street/ > > country the way I do it or is there another way that will give me the > > results I want? > > Don't know what you want ; it isn't the postal address I guess ? I want to identify the street, city, zip and country from the geocoder result and store them in my DB of course :) I don't understand this paragraph from the API doc: "Generally, the more exact address is the most prominent result, as it is in this case. Note that we return different types of addresses, from the most specific street address to less specific political entities such as neighborhoods, cities, counties, states, etc. If you wish to match a more general address, you may wish to inspect the results[].types field." Does this mean that I should get all results and browse trough them and look if there is a result containing just a postal code, street, locality and country? Or is it ok to just go with the first returned result as it is the one that is most accurate??? -- 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.
