On Jun 6, 3:04 pm, FLX <[email protected]> wrote:

> I'd like to have two separate variables for city and country instead
> of formatted_address, but my JSON skills suck.
> I've been trying all sorts of things to only get that city + country
> instead of postal code + city + country
>
> I can do a regular expression to grab the info I need but that would
> be a very dirty solution, there must be a better way. Can anyone
> please lend me a hand?

Use the web service which returns a flat XML structure:
http://code.google.com/apis/maps/documentation/geocoding/#XML

-- 
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.

Reply via email to