What’s Happening Here?

Embed Size (px)

Citation preview

  • 8/14/2019 Whats Happening Here?

    1/32

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    2/32

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    3/32

    People want to talk

    about places

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    4/32

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    5/32

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    6/32

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    7/32

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    8/32

    Whats happening here?

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    9/32

    Original attempts

    Adding it to the tweet

    Setting profile level locations

    Use myloc.me, et. al. to add text to the tweet Localizes mobile phone and puts location in band Takes from 140 characters

    Set the user/location of a Twitter user There is an API for that! Not on a per-tweet basis and not designed for high frequency updates

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    10/32Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    11/32Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    12/32

    curl -u USERNAME:PASSWORD \-d location="San Francisco, California" \

    http://twitter.com/account/update_location.xml

    8285392raffi

    raffiSan Francisco, California...

    Tuesday, December 15, 2009

    http://twitter.com/account/update_location.jsonhttp://twitter.com/account/update_location.json
  • 8/14/2019 Whats Happening Here?

    13/32

    Geotagging API

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    14/32

    Geotagging API

    Adding it to the tweet Per-tweet basis Out of band / pure meta-data Does not take from the 140 characters

    Native Twitter support Simple way to update status with location data Ability to remove geotags from your tweets en masse Using GeoRSS and GeoJSON as the encoding format Across all Twitter APIs (REST, Search, and Streaming)

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    15/32

    Sending an update

    status/update

    hey-ho...

  • 8/14/2019 Whats Happening Here?

    16/32Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    17/32

    Search

    search (with geocode)

    ...

    On the way to ace now, so whenever you can make it I'll be there. (@Port Imperial Ferry in Weehawken) http://4sq.com/2rq0vO...

    40.7759 -74.0129...

    curl "http://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C25km&source=foursquare"

    geocode parameter takes latitude,longitude,radius where radius hasunits of mi or km

    Tuesday, December 15, 2009

    http://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C25km&source=foursquarehttp://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C25km&source=foursquarehttp://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C25km&source=foursquarehttp://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C25km&source=foursquarehttp://4sq.com/2rq0vOhttp://4sq.com/2rq0vO
  • 8/14/2019 Whats Happening Here?

    18/32Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    19/32Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    20/32Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    21/32Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    22/32Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    23/32Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    24/32Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    25/32

    Streaming / Geo-hose (coming soon)

    location filteringcurl "http://stream.twitter.com/1/statuses/filter.xml?locations=-74.5129,40.2759,-73.5019,41.2759"

    locations is a bounding box specified by long 1,lat1,long 2,lat2 and cantrack up to 10 locations that are most 1 degree square (~60 milessquare and enough to cover most metropolitan areas)

    Tuesday, December 15, 2009

    http://stream.twitter.com/1/statuses/filter.xml?locations=-74.5129,40.2759,-73.5019,41.2759http://stream.twitter.com/1/statuses/filter.xml?locations=-74.5129,40.2759,-73.5019,41.2759http://stream.twitter.com/1/statuses/filter.xml?locations=-74.5129,40.2759,-73.5019,41.2759http://stream.twitter.com/1/statuses/filter.xml?locations=-74.5129,40.2759,-73.5019,41.2759
  • 8/14/2019 Whats Happening Here?

    26/32

    Trends API (coming soon)

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    27/32

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    28/32

    Trends API (coming soon)

    Global trends

    Location specific trends

    Currently on front page of Twitter.com and on search.twitter.com Analysis of hot conversations Does not take from the 140 characters

    Tweets being localized through a variety of means into trends Locations exposed over the API as WOEIDs Can ask for available trends sorted by distance from your location Querying for a parent of a location will return all locations under it

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    29/32

    Available locations

    trends/available

    2487956San Francisco

    Town

    United States

    http://where.yahooapis.com/v1/place/2487956

    ...

    curl "http://api.twitter.com/1/trends/available.xml"

    Can optionally take a lat and long parameter to have trends locationsreturned, sorted, as distance from you.

    Tuesday, December 15, 2009

    http://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C25km&source=foursquarehttp://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C25km&source=foursquarehttp://where.yahooapis.com/v1/place/2487956http://where.yahooapis.com/v1/place/2487956
  • 8/14/2019 Whats Happening Here?

    30/32

    Available locations

    trends/ woeid .xml

    ...Golden Globe nominations

    #somethingaintright

    ...

    curl "http://api.twitter.com/1/trends/2487956.xml"

    Look up the trends at the given WOEID

    Tuesday, December 15, 2009

    http://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C25km&source=foursquarehttp://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C25km&source=foursquarehttp://search.twitter.com/search?q=$#http://search.twitter.com/search?q=$#http://search.twitter.com/search?q=$#http://search.twitter.com/search?q=$#http://search.twitter.com/search?q=Golden+Globe+nominationshttp://search.twitter.com/search?q=Golden+Globe+nominations
  • 8/14/2019 Whats Happening Here?

    31/32

    Tuesday, December 15, 2009

  • 8/14/2019 Whats Happening Here?

    32/32

    Questions ? Follow me attwitter.com/raffi