4 messages in com.googlegroups.google-calendar-help-dataapiRe: Getting contents of the "where" f...
FromSent OnAttachments
egil...@gmail.com14 Jul 2007 18:34 
egil...@gmail.com15 Jul 2007 05:38 
Ted Gilchrist16 Jul 2007 06:25 
Lane LiaBraaten (Google)16 Jul 2007 11:22 
Subject:Re: Getting contents of the "where" field of calendar using Zend Gdata framework
From:Ted Gilchrist (egil@gmail.com)
Date:07/16/2007 06:25:55 AM
List:com.googlegroups.google-calendar-help-dataapi

Hi Ted,

This is Ted. (Yes, the same person: I figured it out). Use the 1.0.0version of the Zend Gdata library and do the following:

foreach ($feed as $event){ $title = $event->title; $where = $event->where; foreach ($where as $place){ $where_string = $place->getValueString(); if ($where_string){ print ("where: " . $where_string . "\n");

} } }

It's been instructive, carrying on this little conversation with myself. I record it here, just in case anyone else encounters this question.

I forgot to mention that I'm using php. Also, if I just got my hands on the xml for a calendar item, I wouldn't be averse to looking there for the "where" data, if that's what it took.

Hi,

Can somebody provide a code snippet to show how to access the "Where:" field of a Google Calendar? I plan on stuffing latitudes and longitudes in there and want a want a way to find all calendar items that have this field filled in.

Thanks,

Ted Gilchrist