On Jan 11, 4:52 pm, peter <[email protected]> wrote: > > The best thing I can think of is to scan Placemark.AddressDetails for > a "ThoroughfareName" and then see if that matches the beginning of > Placemark.address and strip it off (plus any commas, hyphens).
Placemark.address seems to be simply a concatenation of all the Placemark elements, so it's bound to match. In fact it will almost certainly be first, followed by a comma and a space -- I haven't tested that exhaustively though. Since it's bound to match, that would seem to be the easiest way to do it. The better way would be to ignore ThoroughfareName but concatenate all the other elements of the Placemark data yourself. That ends up being more complicated because different Placemarks have different constituent data and indeed different data structures: elements may or may not present, or may move in the hierarchy. 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.
