On Sep 2, 8:46 am, Meek <[email protected]> wrote: > > But addresses are always displayed in one, long line. Is there any way > to separate each part of the address into multiple lines? > > Any ideas on how to go about this?
http://code.google.com/intl/da/apis/maps/documentation/javascript/v2/services.html#Geocoding_Structured As well as Placemark.address, you can extract the various portions from the xAL breakdown and format them how you like. The example gets the country code, and a similar method can be used to get other data. Note that you will need some defensive coding, just in case a part of the data is missing. xAL is quite flexible in its structures. -- 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.
