Thanks for the idea Andrew.
Yeah, we ended up making a google_region_to_normalized_region
function, just to get things working, but that's obviously not ideal.
Has anyone else had trouble with this? Google, is this considered a
bug that could be fixed? Or does this work as designed?
On Dec 3, 7:29 pm, "warden [Andrew Leach - Maps API Guru]"
<[EMAIL PROTECTED]> wrote:
> On Dec 3, 8:15 pm, Benjamin Stein <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm not sure how to standardize this. The XML responses are below.
>
> One way of standardising is to test for a space in the string. If it
> is, you've got a reference like "N Carolina"; if it isn't, you've got
> "NC". If you have a space, take the first letter of the string and the
> letter after the space.
>
> Suppose "state" is the variable containing AdministrativeAreaName:
> var re=new RegExp("([A-Z]).*\s([A-Z]).*");
> state=state.replace(re,"$1$2");
>
> That's not tested very extensively though.
>
> 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
-~----------~----~----~----~------~----~------~--~---