Did you ever get an answer to this question?  I have the same problem
but I can't find anyone who is presenting the address formatted with
carriage returns.  It seems like a major difference between the API
and Google's own map applications!


On May 27, 8:10 pm, Chris <chrisvrichard...@gmail.com> wrote:
> Hi,
>
> I thought this was a simple question, but I've read through the group
> digests extensively and I can't find an answer:
>
> Is there any way to get a properly-formatted address string from the
> client geocoder?
>
> My program calls the geocoder and then uses "response.Placemark
> [0].address" to get the corrected street address.
>
> The corrected address is fine, but it doesn't include appropriate line
> breaks needed to display it as a postal address.
>
> For example: if I type "1 infinite loop, cupertino" I will get a
> corrected address of "1 Infinite Loop, Cupertino, CA 95014, USA".  So
> far, so good.  But when Google displays this in an infowindow on
> maps.google.com, they display with line breaks and they suppress "USA"
> so that it looks like a normal postal address:
>
> 1 Infinite Loop
> Cupertino, CA 95014
>
> Does the maps API offer some way that I can format the address this
> way?
>
> I'd also like to display properly formatted international addresses.
> For example "Full-screenVia del Governo Vecchio, 11, 00186 Rome,
> Italy" should display as:
>
> Via del Governo Vecchio, 11
> 00186 Rome, Italy
>
> I know that I can parse the Placemark fields, and since Google adheres
> to an international address standard I could write a program to
> properly format the address myself....  BUT this seems like a
> monumental task.
>
> Is there some standard way to do this that I'm not aware of?
>
> Thanks,
> -Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to