Is there a canonical way to store geospatial coordinates within a calendar event entry? I'm trying to do this with the Java Client Library and so far have had only partial success.
The API for a YouTube Video entry, for instance, shows that object's composition includes a GeoRssWhere object, and provides get and set methods for accessing that object: http://code.google.com/apis/gdata/javadoc/com/google/gdata/data/youtube/VideoEntry.html Is a similar capability available for calendar events? If not, where is this in the roadmap for changes to the Calendar Data API? Location information - and increasingly, geospatial coordinates - is intricately interwoven with calendar event data, and it would be very handy to be able to associate the two within feed entries. I've been trying to use the extensions mechanism to store a GeoRSSWhere object with a calendar event entry, like this; GeoRssWhere point = new GeoRssWhere( latitude, longitude ); entry.addExtension( point ); ... CalendarEventEntry insertedEntry = calendarService.insert( postUrl, eventEntry); When dumping the "insertedEntry", the GeoRSSWhere markup does appear within the calendar entry, in its own namespace: <atom:entry xmlns:atom='http://www.w3.org/2005/Atom'> <atom:category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event'> </atom:category> <atom:title type='text'>Bastille Day Party</atom:title> <georss:where xmlns:georss='http://www.georss.org/georss'> <gml:Point xmlns:gml='http://www.opengis.net/gml'> <gml:pos>2.3686 48.8529</gml:pos> </gml:Point> </georss:where> <gd:when xmlns:gd='http://schemas.google.com/g/2005' startTime='2007-07-14T10:00:00.000-07:00' endTime='2007-07-14T20:59:59.000-07:00'> </gd:when> <gd:where xmlns:gd='http://schemas.google.com/g/2005' valueString='The Bastille'> </gd:where> </atom:entry> However: 1. How can one retrieve this data from an event entry, once it has been stored there, using the Java API? Is there a code example - even if more general - on how to retrieve extension elements available in Google's developer documentation? My first attempt isn't working, probably due to my early and hence sketchy understanding of the API: GeoRssWhere point = entry.getExtension( GeoRssWhere.class ); 2. Will Google Calendar recognize geospatial coordinates stored within a calendar event entry when presenting its "map" link? The "map" link that appears when viewing the details of an event within Google Calendar isn't currently picking up the geospatial coordinates that (appear to) have been stored with a calendar entry. This October 2006 blog post by Stefan Geens implies that the "map" link is based on Google's own parsing and geocoding of the event location ("Where" object), rather than on any geospatial coordinates that might also be stored within the event entry: "Listing integration opportunities for Google Earth" http://www.ogleearth.com/2006/10/how_to_make_goo.html "When Google Calendar and the Data API came out, there were obvious opportunities for geospatial mashups, and indeed, some made it to the beta stage. But then, nothing. At the moment, locations in the calendar are connected to a simple URL-based search in Google Maps." Is that accurate? If so, are there plans to change this at some point, so that if geospatial coordinates are stored within a calendar event entry, those are used instead of the location text when generating the "map" link? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data 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-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
