Donovan - like you, I'm just getting gd:formattedAddress back, not the address parts.
The current behaviour looks and feels like a bug to me because: a) it's inconsistent with the treatment of gd:name, and b) it seems to be at variance with the docs' (although the 'may' offers some wiggle room): http://code.google.com/apis/contacts/docs/3.0/migration_guide.html#StructuredUnstructuredInteractions Modifications of gd:postalAddress by old clients are reflected in the gd:formattedAddress, and they may also trigger heuristic parsing with the goal of obtaining the remaining components of gd:structuredPostalAddress. This, together with the mishandling of gd:country make me wonder if this v3 API needs some time to shake out and stabilise. To the googlers on this list: please don't take this as negativity. The v3 features are fantastic, it just feels like they might have been released a bit prematurely. Leni. Donovan Walker wrote: > Leni, > > if you pull addresses from google, are you getting anything other than > the formattedAddress sub field in gd:structuredPostalAddress ? > > On Jun 18, 4:49 pm, Zindus Development <[email protected]> wrote: >> A couple of questions about gd:structuredPostalAddress:http://code.google.com/apis/gdata/docs/2.0/elements.html#gdStructured... >> >> 1. is gd:formattedAddress parsed into component parts? >> >> When a new contact containing a >> gd:structuredPostalAddress/gd:formattedAddress element is PUT, the >> returned contact doesn't contain any elements for the address parts like >> gd:street gd:city etc. >> >> This seems to be inconsistent with the handling of the gd:name element, >> where creating a new contact with gd:name/gd:fullName returns a contact >> containing the name parts: givenName, familyName etc. >> >> Is gd:formattedAddress supposed to be parsed into it's component parts >> by the API? And if so, when? >> >> 2. is gd:country broken? >> >> PUT the contact given as an example here:http://code.google.com/apis/contacts/docs/3.0/developers_guide_protoc... >> and the API returns: >> 400 Bad Request >> [Line 34, Column 42, element gd:country] Unrecognised element. >> >> Remove the gd:country element and it works fine. >> >> Leni. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Contacts 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-contacts-api?hl=en -~----------~----~----~----~------~----~------~--~---
