On Dec 29, 7:04 am, argv01 <[email protected]> wrote: > > Ok, I'm stumped. I'm passing the string "London, England, Europe", to > getLocations(), and I get back: > ------------------- > 10 destinations found: > Europe Rd, Greenwich, Greater London SE18 5, UK > London Rd, High Wycombe, Buckinghamshire HP11 1, UK > London Rd, Staines, Surrey TW18 4, UK > London Rd, Leicester LE2 0, UK > London Rd, Bognor Regis, West Sussex PO21 1, UK > London Rd, Coventry CV3 4, UK > London Rd, Newbury, West Berkshire RG14 2, UK > London Rd, Southend-on-Sea SS0 7, UK > London Rd, Camberley, Surrey GU15 3, UK > London Rd, Merton, Greater London SM4 5, UK > ------------------- > However, if I pass the same string to getLatLng(), I get one > destination, and it's the correct one. > But it now dawns on me that the destination in question happens to map > to the same as the *first* address in the list.
You are confusing the geocoder by including "Europe". The geocoder geocodes postal addresses -- it makes a guess if it can't recognise a postal address -- and "London, England, Europe" isn't a postal address. Having found "Europe Road" in London, it then goes on to find other roads which might match your specification. "London, England" (or preferably "London UK") isn't a postal address either, but the geocoder will guess at the city and get it right. On Dec 29, 9:18 am, Mike Williams <[email protected]> wrote: > No it doesn't. GClientGeocoder treats "Scotland" as "Scotland, UK" > unless you choose to bias the country to USA. I'm not sure that's right any more. I would expect that to happen, but "Scotland" yields Did you mean: 1: Scotland, OH 44026, USA 2: Scotland, SD, USA 3: Scotland, GA, USA 4: Scotland, LA 70807, USA 5: Scotland, IN 47522, USA 6: Scotland, TX, USA 7: Scotland, ME 04062, USA 8: Scotland, AL 36471, USA 9: Scotland, CT 06247, USA 10: Scotland, AR 71749, USA which is presumably the result of the improvements promised as the geocoder is updated :-( Andrew -- 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.
