We use the structured data if it's there, and parse the formatted data
if it's not. (Interestingly, Google Sync for iPhone, which uses the
Exchange ActiveSync protocol, uses the structured fields, which is
nice.)

Postal address parsing is an ugly business. Hopefully the Contacts
team will address this soon. And maybe they can throw structured
contact names in there too. :-)

Regards,
Charlie


On Jul 22, 10:43 am, Donovan Walker <[email protected]> wrote:
> So, it looks like google doesn't have a address parsing implemented.
> About 1 month ago Julian said they were working on it. I think it's
> time to start asking.
>
> As an interim solution, I'd suggest moving to a single string address
> solution, or looking into the USPS api. They have address validation.
> I haven't used it, but I would be willing to bet you can get a
> structured address from them. (I wonder why google hasn't talked with
> them about getting their algorithm)
>
> On Jul 21, 7:48 am, Charlie Wood <[email protected]> wrote:
>
>
>
> > Yes, that's the behavior we're seeing.
>
> > Thanks,
> > Charlie
>
> > On Jul 20, 2:54 pm, Donovan Walker <[email protected]> wrote:
>
> > > Let me see if I understand (I don't have a solution, but your language
> > > is a little confusing)..
> > > The process is as follows
> > > * add a structured address via the api
> > > * ask for the address via the api -> you get a structured address back
> > > * update the same address in gmail's contact interface
> > > * ask for the address via the api -> you get a formatted address back,
> > > but not a structured one
>
> > > Is this correct?
>
> > > On Jul 19, 9:47 pm, LC <[email protected]> wrote:
>
> > > > Hi,  i am using Google Contacts APIv3 in protocol way.
> > > > I found there is a problem about update the contacts information in
> > > > v3.
> > > > when I add a strucutredAddress ex:
> > > > <gd:structuredPostalAddress>
> > > > <gd:formattedAddress>1600 Amphitheatre Pkwy Mountain View</
> > > > gd:formattedAddress>
> > > > <gd:street>1600 Amphitheatre Pkwy</gd:street>
> > > > <gd:postcode>94043</gd:postcode>
> > > > <gd:city>Mountain View</gd:city>
> > > > <gd:region>CA</gd:region>
> > > > <gd:country>United States</gd:country>
> > > > </gd:structuredPostalAddress>
>
> > > > adding by protolcol API is working...
> > > > after adding this, I get it by protocol API is still working.
>
> > > > But if I modify it in my Web Gmail page,
> > > > Then I try to get it again by protocol API.
> > > > it will response with only
> > > > <gd:structuredPostalAddress>
> > > > <gd:formattedAddress>1600 Amphitheatre Pkwy Mountain Vie
> > > > </gd:formattedAddress>
> > > > </gd:structuredPostalAddress>
> > > > like this.
> > > > Then I update it again with the responsed XML by protocol API without
> > > > modifying it
> > > > the information is not workable(not visiable) in gmail contacts.
>
> > > > Tks
>
> > > > On Jun 22, 12:28 pm, Devang Parekh <[email protected]> wrote:
>
> > > > > Hello, I would like to join this thread. I also update my client as
> > > > > googleVersion3. I notice one issue in version3 other then 
> > > > > structuredAddress.
> > > > > In documentation, googleVersion3 gives new nameProperty like 
> > > > > familyName,
> > > > > givenName etc. But i can't retrieve it. There are no such tags in raw 
> > > > > XML of
> > > > > googleResponse. This may in under development but i just want to 
> > > > > notify you
> > > > > about this.
> > > > > Regards,
> > > > > Devang
>
> > > > > On Mon, Jun 22, 2009 at 9:29 AM, Donovan Walker 
> > > > > <[email protected]>wrote:
>
> > > > > > Fantastic. Keep us posted.
>
> > > > > > As you improve parsing ability, it would be wonderful to have a 
> > > > > > parse
> > > > > > address call. I'm considering moving my application to u structured
> > > > > > But it's a bit of. One way leap at this point.
>
> > > > > > Wishing yoy well
>
> > > > > > Julian (Google) wrote:
> > > > > > > Hi,
>
> > > > > > > Thank you for the feed back, as I mentioned in other posts, there 
> > > > > > > has
> > > > > > > been a lot of work upgrading and improving the unstructured data
> > > > > > > parsing, Address parsing is in our top priorities but it will 
> > > > > > > take few
> > > > > > > more weeks, we will keep you posted here in the group.
>
> > > > > > > Cheers,
> > > > > > > Julian
>
> > > > > > > On Jun 19, 11:23 pm, Donovan Walker <[email protected]> 
> > > > > > > wrote:
> > > > > > > > I've checked the raw - json result and don't see any structured 
> > > > > > > > data
> > > > > > > > in it. I've retrieved XML. Same result.
>
> > > > > > > > Help!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to