On Jul 17, 7:02 am, lks <[email protected]> wrote:
> 1) How come the country name returned is USA instead of United
> States? I believe the latter is more typical for the long name, which
> tends to be returned for other countries
Can't comment on that: presumably there's a standard Google follow. I
guess it's because when writing an address one would usually use "USA"
rather than "United States of America" or even "United States".
> 2) It appears the only simple way that I can find the full US State
> Name is to look for a record with Accuracy = 2 and then look at the
> address field which has the state name before the comma. It would be
> nice to include the full state name in the first address record
> returned, not just the state postal code.
The xAL DTD implies the two-letter abbreviation is expected:
<!-- Name of the administrative area. eg. MI in USA, NSW in Australia--
>
<!ELEMENT AdministrativeAreaName (#PCDATA)>
<!ATTLIST AdministrativeAreaName
Type CDATA #IMPLIED
Code CDATA #IMPLIED
>
Although I suppose that spec would allow
<AdministrativeAreaName Code="MI">Michigan</AdministrativeAreaName>
See Issues 1023 and 901:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=1023
http://code.google.com/p/gmaps-api-issues/issues/detail?id=901
Again, it's a postal address thing, which is what xAL is intended for.
Using this form would require an app to interrogate the Code attribute
first and only use the text content if there is no code.
> 3) The only way to get the full province name in Canada seems to be to
> rip apart the address line for address records with postal code
> accuracy. For example, Toronto. It would be nice to have the full
> province name in the first address record returned.
Same again.
Star the issues and add others if you like, but as the current use is
established for a particular purpose, I wouldn't hold out much hope,
I'm afraid.
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
-~----------~----~----~----~------~----~------~--~---