Hey, guys! I am currently working on a synchronization (2 way) of Google contacts with a 3rd Party system. Most of the conflicts that may appear during the sync we managed to resolve. We are however having troubles with the Addresses. We cannot attach anything to a StructuredPostalAddress, do we? And the StructuredPostalAddress doesn't have an "id" we can relate to our Address Id? So using some logical operations we managed to reduce the "I don't know what to do" situations to only one: 1. Create 2 or more addresses 2. Sync. 3. Go to Google and Delete one of the addresses. 4. Go to Google and Update one of the addresses. 5. Sync.
What happens is that we are basically holding a "snapshot" of how the contact addresses looked like when they got to Google. Then when we sync again - we are able to check that snapshot against the current Google contact and extract what was changed Google side. Unfortunatelly when you have 2 changes (1 delete and 1 update) - the index of the addresses are changed and you can't also map by directly comparing the addresses (remember - we have 1 udpate that changed an address). So basically we have 2 addresses that should be mapped to 1 address in the "snapshot". And no way to tell which of the addresses in the "snapshot" was deleted and which - updated. We are bumping our heads for quite a while so any suggestions are highly appreciated. Also - do you know if anyone achieved full 2 way sync with Google contacts? Thanks! -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html
