Google Calendar API

There is now a GoogleCalendar API. They also cleaned up their XML. This is very exciting, as to date I was having to parse a lot of the data by hand in the summary field. Of course, "API" is loosely used here, as really they're just publishing a specification of their feed format.

For example the date is now its own tag:


And the location is either as simple as a name:

The format specifies possible advanced location encoding via GeoPoints, postal address, primary and alternate locations.

22646 Woodward Ave.
Ferndale, MI 48220

up to:

      valueString="Woodward Ave Brewers">
Good beer

22646 Woodward Ave., Ferndale,
MI 48220

(212) 555-1212

This makes it much nicer for parsing. The API even allows for adding new events to a calendar.

Update: you have to make sure and grab the full version of the Calendar feed and not the basic
version. The Basic version contains the same old wonkiness. However, the full version is the new yummy XML-ified version. You select this by changing the last tag on the URI.




About this article

written on
posted in TechnologyProgrammingWebGoogleGoogle Calendar Back to Top

About the Author

Andrew Turner is an advocate of open standards and open data. He is actively involved in many organizations developing and supporting open standards, including OpenStreetMap, Open Geospatial Consortium, Open Web Foundation, OSGeo, and the World Wide Web Consortium. He co-founded CrisisCommons, a community of volunteers that, in coordination with government agencies and disaster response groups, build technology tools to help people in need during and after a crisis such as an earthquake, tsunami, tornado, hurricane, flood, or wildfire.