Adding timezones into Upcoming feeds
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Adding timezones into Upcoming feeds

on

  • 1,934 views

This is the presentation I gave at Barcamp Brighton 3 on 6th September 2008. It gives an overview of an approach I have taken to insert timezones into my watchlist REST feed generated by Upcoming. The ...

This is the presentation I gave at Barcamp Brighton 3 on 6th September 2008. It gives an overview of an approach I have taken to insert timezones into my watchlist REST feed generated by Upcoming. The pipe described here is version 1 which adds a new node into the REST response. Whilst not ideal this is the current solution.

Statistics

Views

Total Views
1,934
Views on SlideShare
1,928
Embed Views
6

Actions

Likes
0
Downloads
3
Comments
0

3 Embeds 6

http://www.linkedin.com 3
http://www.slideshare.net 2
https://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Adding timezones into Upcoming feeds Presentation Transcript

  • 1. Adding timezones into your Upcoming feed Matt Harris 1
  • 2. Problem Upcoming doesn’t know about timezones Their events are “floating” Different timezone events show as the same timezone in your calendar 2
  • 3. Solution Add a timezone to the event ... but how? 3
  • 4. What do we have? Start date, end date, start time, end time problem: their floating times longitude/latitude Bad, not actually used Country code Good, but what about multi-timezone countries City OK, but it was entered as free text 4
  • 5. Example Feed { quot;venue_state_namequot;:quot;Englandquot;, quot;venue_country_codequot;:quot;ukquot;, quot;usernamequot;:quot;adactioquot;, quot;venue_zipquot;:quot;SW1P 3NZquot;, quot;tagsquot;:quot;quot;, quot;statusquot;:quot;watchquot;, quot;metro_idquot;:quot;49quot;, quot;end_timequot;:quot;17:00:00quot;, quot;venue_idquot;:quot;69299quot;, quot;venue_state_codequot;:quot;londonquot;, quot;end_datequot;:quot;2008-09-16quot;, quot;latitudequot;:quot;quot;, quot;venue_phonequot;:quot;020 7390 1590quot;, quot;personalquot;:quot;0quot;, quot;user_idquot;:quot;81213quot;, quot;idquot;:quot;449191quot;, quot;venue_addressquot;:quot;Dean's Yard, quot;start_datequot;:quot;2008-09-15quot;, Westminsterquot;, quot;geocoding_ambiguousquot;:quot;quot;, quot;venue_namequot;:quot;Church House ... quot;, quot;venue_cityquot;:quot;Londonquot;, quot;venue_state_idquot;:quot;59quot;, quot;longitudequot;:quot;quot;, quot;venue_country_idquot;:quot;6quot;, quot;venue_country_namequot;:quot;United Kingdomquot;, quot;venue_urlquot;:quot;http://url/quot;, quot;namequot;:quot;@media Ajaxquot;, quot;titlequot;:quot;quot; quot;start_timequot;:quot;09:00:00quot;, }, quot;geocoding_precisionquot;:quot;quot;, quot;descriptionquot;:quot;After a hugely successful, ....quot;, 5
  • 6. Finding the timezone Couple of providers with APIs Geonames Google Yahoo Location Extractor 6
  • 7. Converting to a Timezone http://www.geonames.org Good set of web service methods Documentation helpful Various response formats 7
  • 8. Process Extract City and Country from Upcoming Feed SEARCH for city and country code on GeoNames Extract Longitude and Latitude from GeoNames response RETRIEVE timezone from GeoNames Inject into Upcoming feed 8
  • 9. Considerations Time of response - caching? Frequency of change, how do we keep this up to date? 9
  • 10. Step up Yahoo Pipes 10
  • 11. Further Info http://www.themattharris.com http://pipes.yahoo.com/themattharris/ upcomingusergetwatchlist Thanks also to Kent Brewster,Yahoo Inc for Pipes help 11