What's happening here?

R
Raffi KrikorianPlatform Team Member
What’s happening here?



                         TM
What's happening here?
People want to talk
about places
What's happening here?
What's happening here?
What's happening here?
What's happening here?
“What’s happening here?”
Original attempts
Adding it to the tweet
‣   Use myloc.me, et. al. to add text to the tweet
‣   Localizes mobile phone and puts location “in band”
‣   Takes from 140 characters


Setting profile level locations
‣   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
What's happening here?
What's happening here?
curl -u USERNAME:PASSWORD 
-d location="San Francisco, California" 
http://twitter.com/account/update_location.xml

<user>
  <id>8285392</id>
  <name>raffi</name>
  <screen_name>raffi</screen_name>
  <location>San Francisco, California</location>
  ...
</user>
Geotagging API
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)
Sending an update
status/update

curl -u USERNAME:PASSWORD 
-d "status=hey-ho&lat=37.9&long=-122.3" 
http://twitter.com/status/update.xml


<status>
  <text>hey-ho</text>
  ...
  <geo xmlns:georss="http://www.georss.org/georss>
    <georss:point>37.9 -122.3</georss:point>
  </geo>
  ...
</user>
What's happening here?
Search
search (with geocode)
curl "http://search.twitter.com/search.atom?
geocode=40.757929%2C-73.985506%2C25km&source=foursquare"

geocode parameter takes “latitude,longitude,radius” where radius has
units of mi or km
...
<title>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</title>
...
<twitter:geo>
   <georss:point>40.7759 -74.0129</georss:point>
</twitter:geo>
...
What's happening here?
What's happening here?
What's happening here?
What's happening here?
What's happening here?
What's happening here?
What's happening here?
Streaming / Geo-hose (coming soon)
location filtering
curl "http://stream.twitter.com/1/statuses/filter.xml?
locations=-74.5129,40.2759,-73.5019,41.2759"

locations is a bounding box specified by “long1,lat1,long2,lat2” and can
track up to 10 locations that are most 1 degree square (~60 miles
square and enough to cover most metropolitan areas)
Trends API (coming soon)
What's happening here?
Trends API (coming soon)
Global trends
‣   Currently on front page of Twitter.com and on search.twitter.com
‣   Analysis of “hot conversations”
‣   Does not take from the 140 characters

Location specific trends
‣   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
Available locations
trends/available
curl "http://api.twitter.com/1/trends/available.xml"

Can optionally take a lat and long parameter to have trends locations
returned, sorted, as distance from you.
<locations type=”array”>
  <location>
     <woeid>2487956</woeid>
     <name>San Francisco</name>
     <placeTypeName code=”7”>Town</placeTypeName>
     <country type=”Country” code=”US”>United States</country>
     <url>http://where.yahooapis.com/v1/place/2487956</url>
  </location>
  ...
</locations>
Available locations
trends/woeid.xml
curl "http://api.twitter.com/1/trends/2487956.xml"

Look up the trends at the given WOEID


<matching_trends type=”array”>
  <trends as_of=”2009-12-15T20:19:09Z”>
    ...
      <trend url=”http://search.twitter.com/search?q=Golden+Globe+nominations” query=”Golden
+Globe+nominations”>Golden Globe nominations</trend>
      <trend url=”http://search.twitter.com/search?q=%23somethingaintright”
query=”%23somethingaintright”>#somethingaintright</trend>
    ...
  </trends>
</matching_trends>
What's happening here?
Questions?   Follow me at
             twitter.com/raffi




                           TM
1 of 32

Recommended

Intro to developing for @twitterapi (updated) by
Intro to developing for @twitterapi (updated)Intro to developing for @twitterapi (updated)
Intro to developing for @twitterapi (updated)Raffi Krikorian
2.6K views64 slides
Intro to developing for @twitterapi by
Intro to developing for @twitterapiIntro to developing for @twitterapi
Intro to developing for @twitterapiRaffi Krikorian
10.5K views99 slides
Developing for @twitterapi #hack4health by
Developing for @twitterapi #hack4healthDeveloping for @twitterapi #hack4health
Developing for @twitterapi #hack4healthRaffi Krikorian
1.7K views43 slides
Developing for @twitterapi (Techcrunch Disrupt Hackathon) by
Developing for @twitterapi (Techcrunch Disrupt Hackathon)Developing for @twitterapi (Techcrunch Disrupt Hackathon)
Developing for @twitterapi (Techcrunch Disrupt Hackathon)Raffi Krikorian
7.9K views28 slides
Rails 3 and OAuth for Barcamp Tampa by
Rails 3 and OAuth for Barcamp TampaRails 3 and OAuth for Barcamp Tampa
Rails 3 and OAuth for Barcamp TampaBryce Kerley
1K views92 slides
API Design - 3rd Edition by
API Design - 3rd EditionAPI Design - 3rd Edition
API Design - 3rd EditionApigee | Google Cloud
35.8K views71 slides

More Related Content

What's hot

OAuth Introduction by
OAuth IntroductionOAuth Introduction
OAuth Introductionh_marvin
6.4K views39 slides
Seoptimizing by
SeoptimizingSeoptimizing
SeoptimizingGaurav Vashisht
1.4K views19 slides
Nishimura finding vulnerabilities-in-firefox-for-i-os-(nishimunea) by
Nishimura finding vulnerabilities-in-firefox-for-i-os-(nishimunea)Nishimura finding vulnerabilities-in-firefox-for-i-os-(nishimunea)
Nishimura finding vulnerabilities-in-firefox-for-i-os-(nishimunea)PacSecJP
496 views74 slides
Connecting to the Pulse of the Planet with the Twitter Platform by
Connecting to the Pulse of the Planet with the Twitter PlatformConnecting to the Pulse of the Planet with the Twitter Platform
Connecting to the Pulse of the Planet with the Twitter PlatformAndy Piper
11.1K views54 slides
Building @Anywhere (for TXJS) by
Building @Anywhere (for TXJS)Building @Anywhere (for TXJS)
Building @Anywhere (for TXJS)danwrong
15.7K views72 slides
Web application security for java (XSS,Session Fixation) by
Web application security for java (XSS,Session Fixation)Web application security for java (XSS,Session Fixation)
Web application security for java (XSS,Session Fixation)Ritesh Raushan
1.6K views18 slides

What's hot(20)

OAuth Introduction by h_marvin
OAuth IntroductionOAuth Introduction
OAuth Introduction
h_marvin6.4K views
Nishimura finding vulnerabilities-in-firefox-for-i-os-(nishimunea) by PacSecJP
Nishimura finding vulnerabilities-in-firefox-for-i-os-(nishimunea)Nishimura finding vulnerabilities-in-firefox-for-i-os-(nishimunea)
Nishimura finding vulnerabilities-in-firefox-for-i-os-(nishimunea)
PacSecJP496 views
Connecting to the Pulse of the Planet with the Twitter Platform by Andy Piper
Connecting to the Pulse of the Planet with the Twitter PlatformConnecting to the Pulse of the Planet with the Twitter Platform
Connecting to the Pulse of the Planet with the Twitter Platform
Andy Piper11.1K views
Building @Anywhere (for TXJS) by danwrong
Building @Anywhere (for TXJS)Building @Anywhere (for TXJS)
Building @Anywhere (for TXJS)
danwrong15.7K views
Web application security for java (XSS,Session Fixation) by Ritesh Raushan
Web application security for java (XSS,Session Fixation)Web application security for java (XSS,Session Fixation)
Web application security for java (XSS,Session Fixation)
Ritesh Raushan1.6K views
Building Twitter's SDKs for Android by Andy Piper
Building Twitter's SDKs for AndroidBuilding Twitter's SDKs for Android
Building Twitter's SDKs for Android
Andy Piper2.6K views
OAuth Hacks A gentle introduction to OAuth 2 and Apache Oltu by Antonio Sanso
OAuth Hacks A gentle introduction to OAuth 2 and Apache OltuOAuth Hacks A gentle introduction to OAuth 2 and Apache Oltu
OAuth Hacks A gentle introduction to OAuth 2 and Apache Oltu
Antonio Sanso13.2K views
Security Presentation for Boulder WordPress Meetup by Angela Bowman
Security Presentation for Boulder WordPress MeetupSecurity Presentation for Boulder WordPress Meetup
Security Presentation for Boulder WordPress Meetup
Angela Bowman516 views
Mashups & APIs by Pamela Fox
Mashups & APIsMashups & APIs
Mashups & APIs
Pamela Fox2.3K views
Kiran karnad rtc2014 ghdb-final by Romania Testing
Kiran karnad rtc2014 ghdb-finalKiran karnad rtc2014 ghdb-final
Kiran karnad rtc2014 ghdb-final
Romania Testing7.5K views
Magento Security from Developer's and Tester's Points of View by Amasty
Magento Security from Developer's and Tester's Points of ViewMagento Security from Developer's and Tester's Points of View
Magento Security from Developer's and Tester's Points of View
Amasty3.6K views
Open social for science a sciverse primer - mysimplesearch by remko caprio
Open social for science   a sciverse primer - mysimplesearchOpen social for science   a sciverse primer - mysimplesearch
Open social for science a sciverse primer - mysimplesearch
remko caprio331 views
Использование социальных сетей и микроблогов для бизнеса by Aleksandr Shchedrin
Использование социальных сетей и микроблогов для бизнесаИспользование социальных сетей и микроблогов для бизнеса
Использование социальных сетей и микроблогов для бизнеса
UC2013 Speed Geeking: Intro to OAuth2 by Aaron Parecki
UC2013 Speed Geeking: Intro to OAuth2UC2013 Speed Geeking: Intro to OAuth2
UC2013 Speed Geeking: Intro to OAuth2
Aaron Parecki3.7K views
SgCodeJam24 Workshop by remko caprio
SgCodeJam24 WorkshopSgCodeJam24 Workshop
SgCodeJam24 Workshop
remko caprio909 views

Similar to What's happening here?

Adding the "Where" to the "When" by
Adding the "Where" to the "When"Adding the "Where" to the "When"
Adding the "Where" to the "When"Raffi Krikorian
1.9K views61 slides
Handling Real-time Geostreams by
Handling Real-time GeostreamsHandling Real-time Geostreams
Handling Real-time Geostreamsguest35660bc
1.1K views80 slides
Handling Real-time Geostreams by
Handling Real-time GeostreamsHandling Real-time Geostreams
Handling Real-time GeostreamsRaffi Krikorian
1.6K views80 slides
Applciation footprinting, discovery and enumeration by
Applciation footprinting, discovery and enumerationApplciation footprinting, discovery and enumeration
Applciation footprinting, discovery and enumerationBlueinfy Solutions
2.4K views48 slides
Locovore by
LocovoreLocovore
Locovoreklee4vp
534 views9 slides
Android Pro Tips - IO 13 reloaded Event by
Android Pro Tips - IO 13 reloaded EventAndroid Pro Tips - IO 13 reloaded Event
Android Pro Tips - IO 13 reloaded EventRan Nachmany
2.9K views53 slides

Similar to What's happening here?(20)

Adding the "Where" to the "When" by Raffi Krikorian
Adding the "Where" to the "When"Adding the "Where" to the "When"
Adding the "Where" to the "When"
Raffi Krikorian1.9K views
Handling Real-time Geostreams by guest35660bc
Handling Real-time GeostreamsHandling Real-time Geostreams
Handling Real-time Geostreams
guest35660bc1.1K views
Handling Real-time Geostreams by Raffi Krikorian
Handling Real-time GeostreamsHandling Real-time Geostreams
Handling Real-time Geostreams
Raffi Krikorian1.6K views
Applciation footprinting, discovery and enumeration by Blueinfy Solutions
Applciation footprinting, discovery and enumerationApplciation footprinting, discovery and enumeration
Applciation footprinting, discovery and enumeration
Blueinfy Solutions2.4K views
Locovore by klee4vp
LocovoreLocovore
Locovore
klee4vp534 views
Android Pro Tips - IO 13 reloaded Event by Ran Nachmany
Android Pro Tips - IO 13 reloaded EventAndroid Pro Tips - IO 13 reloaded Event
Android Pro Tips - IO 13 reloaded Event
Ran Nachmany2.9K views
What's New with Windows Phone - FoxCon Talk by Sam Basu
What's New with Windows Phone - FoxCon TalkWhat's New with Windows Phone - FoxCon Talk
What's New with Windows Phone - FoxCon Talk
Sam Basu673 views
Let's Peel Mangos by Sam Basu
Let's Peel MangosLet's Peel Mangos
Let's Peel Mangos
Sam Basu1.2K views
Modern Tools for API Testing, Debugging and Monitoring by Neil Mansilla
Modern Tools for API Testing, Debugging and MonitoringModern Tools for API Testing, Debugging and Monitoring
Modern Tools for API Testing, Debugging and Monitoring
Neil Mansilla8.6K views
Development of Twitter Application #6 - Trends by Myungjin Lee
Development of Twitter Application #6 - TrendsDevelopment of Twitter Application #6 - Trends
Development of Twitter Application #6 - Trends
Myungjin Lee1.8K views
Networked APIs with swift by Tim Burks
Networked APIs with swiftNetworked APIs with swift
Networked APIs with swift
Tim Burks669 views
Enemy of the state by Mike North
Enemy of the stateEnemy of the state
Enemy of the state
Mike North2.8K views
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko... by Crossref
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...
Crossref3.8K views
Taming Deployment With Smart Frog by Steve Loughran
Taming Deployment With Smart FrogTaming Deployment With Smart Frog
Taming Deployment With Smart Frog
Steve Loughran688 views
BDD to the Bone: Using Behave and Selenium to Test-Drive Web Applications by Patrick Viafore
BDD to the Bone: Using Behave and Selenium to Test-Drive Web ApplicationsBDD to the Bone: Using Behave and Selenium to Test-Drive Web Applications
BDD to the Bone: Using Behave and Selenium to Test-Drive Web Applications
Patrick Viafore1.1K views
Web Services Discovery for Devices by Jorgen Thelin
Web Services Discovery for DevicesWeb Services Discovery for Devices
Web Services Discovery for Devices
Jorgen Thelin18.1K views

More from Raffi Krikorian

Hacking Conway's Law by
Hacking Conway's LawHacking Conway's Law
Hacking Conway's LawRaffi Krikorian
5.1K views36 slides
Re-architecting on the Fly #OReillySACon by
Re-architecting on the Fly #OReillySACon Re-architecting on the Fly #OReillySACon
Re-architecting on the Fly #OReillySACon Raffi Krikorian
6.7K views131 slides
Real-time systems at Twitter (Velocity 2012) by
Real-time systems at Twitter (Velocity 2012)Real-time systems at Twitter (Velocity 2012)
Real-time systems at Twitter (Velocity 2012)Raffi Krikorian
10.6K views42 slides
Twitter: Engineering for Real-Time (Stanford ACM 2011) by
Twitter: Engineering for Real-Time (Stanford ACM 2011)Twitter: Engineering for Real-Time (Stanford ACM 2011)
Twitter: Engineering for Real-Time (Stanford ACM 2011)Raffi Krikorian
10.7K views140 slides
Securing Your Ecosystem (FOWA Las Vegas 2011) by
Securing Your Ecosystem (FOWA Las Vegas 2011)Securing Your Ecosystem (FOWA Las Vegas 2011)
Securing Your Ecosystem (FOWA Las Vegas 2011)Raffi Krikorian
4.7K views31 slides
#rtgeo (Where 2.0 2011) by
#rtgeo (Where 2.0 2011)#rtgeo (Where 2.0 2011)
#rtgeo (Where 2.0 2011)Raffi Krikorian
1.7K views87 slides

More from Raffi Krikorian(20)

Re-architecting on the Fly #OReillySACon by Raffi Krikorian
Re-architecting on the Fly #OReillySACon Re-architecting on the Fly #OReillySACon
Re-architecting on the Fly #OReillySACon
Raffi Krikorian6.7K views
Real-time systems at Twitter (Velocity 2012) by Raffi Krikorian
Real-time systems at Twitter (Velocity 2012)Real-time systems at Twitter (Velocity 2012)
Real-time systems at Twitter (Velocity 2012)
Raffi Krikorian10.6K views
Twitter: Engineering for Real-Time (Stanford ACM 2011) by Raffi Krikorian
Twitter: Engineering for Real-Time (Stanford ACM 2011)Twitter: Engineering for Real-Time (Stanford ACM 2011)
Twitter: Engineering for Real-Time (Stanford ACM 2011)
Raffi Krikorian10.7K views
Securing Your Ecosystem (FOWA Las Vegas 2011) by Raffi Krikorian
Securing Your Ecosystem (FOWA Las Vegas 2011)Securing Your Ecosystem (FOWA Las Vegas 2011)
Securing Your Ecosystem (FOWA Las Vegas 2011)
Raffi Krikorian4.7K views
Twitter for CS10 @ Berkeley (Spring 2011) by Raffi Krikorian
Twitter for CS10 @ Berkeley (Spring 2011)Twitter for CS10 @ Berkeley (Spring 2011)
Twitter for CS10 @ Berkeley (Spring 2011)
Raffi Krikorian1K views
Twitter by the Numbers (Columbia University) by Raffi Krikorian
Twitter by the Numbers (Columbia University)Twitter by the Numbers (Columbia University)
Twitter by the Numbers (Columbia University)
Raffi Krikorian3.7K views
Twitter and the Real-Time Web by Raffi Krikorian
Twitter and the Real-Time WebTwitter and the Real-Time Web
Twitter and the Real-Time Web
Raffi Krikorian1.4K views
Twitter - Guest Lecture UC Berkeley CS10 Fall 2010 by Raffi Krikorian
Twitter - Guest Lecture UC Berkeley CS10 Fall 2010Twitter - Guest Lecture UC Berkeley CS10 Fall 2010
Twitter - Guest Lecture UC Berkeley CS10 Fall 2010
Raffi Krikorian2.4K views
How to use Geolocation in your webapp @ FOWA Dublin 2010 by Raffi Krikorian
How to use Geolocation in your webapp @ FOWA Dublin 2010How to use Geolocation in your webapp @ FOWA Dublin 2010
How to use Geolocation in your webapp @ FOWA Dublin 2010
Raffi Krikorian1K views
"What's Happening" to "What's Happening Here" @ Chirp by Raffi Krikorian
"What's Happening" to "What's Happening Here" @ Chirp"What's Happening" to "What's Happening Here" @ Chirp
"What's Happening" to "What's Happening Here" @ Chirp
Raffi Krikorian1.4K views
Scala + WattzOn, sitting in a tree.... by Raffi Krikorian
Scala + WattzOn, sitting in a tree....Scala + WattzOn, sitting in a tree....
Scala + WattzOn, sitting in a tree....
Raffi Krikorian1.6K views

Recently uploaded

Info Session November 2023.pdf by
Info Session November 2023.pdfInfo Session November 2023.pdf
Info Session November 2023.pdfAleksandraKoprivica4
15 views15 slides
Melek BEN MAHMOUD.pdf by
Melek BEN MAHMOUD.pdfMelek BEN MAHMOUD.pdf
Melek BEN MAHMOUD.pdfMelekBenMahmoud
17 views1 slide
Piloting & Scaling Successfully With Microsoft Viva by
Piloting & Scaling Successfully With Microsoft VivaPiloting & Scaling Successfully With Microsoft Viva
Piloting & Scaling Successfully With Microsoft VivaRichard Harbridge
13 views160 slides
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... by
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...The Digital Insurer
24 views52 slides
Future of Indian ConsumerTech by
Future of Indian ConsumerTechFuture of Indian ConsumerTech
Future of Indian ConsumerTechKapil Khandelwal (KK)
24 views68 slides
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...James Anderson
126 views32 slides

Recently uploaded(20)

Piloting & Scaling Successfully With Microsoft Viva by Richard Harbridge
Piloting & Scaling Successfully With Microsoft VivaPiloting & Scaling Successfully With Microsoft Viva
Piloting & Scaling Successfully With Microsoft Viva
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... by The Digital Insurer
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson126 views
SAP Automation Using Bar Code and FIORI.pdf by Virendra Rai, PMP
SAP Automation Using Bar Code and FIORI.pdfSAP Automation Using Bar Code and FIORI.pdf
SAP Automation Using Bar Code and FIORI.pdf
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors by sugiuralab
TouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective SensorsTouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective Sensors
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors
sugiuralab23 views
Business Analyst Series 2023 - Week 3 Session 5 by DianaGray10
Business Analyst Series 2023 -  Week 3 Session 5Business Analyst Series 2023 -  Week 3 Session 5
Business Analyst Series 2023 - Week 3 Session 5
DianaGray10345 views
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ... by Jasper Oosterveld
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
"Running students' code in isolation. The hard way", Yurii Holiuk by Fwdays
"Running students' code in isolation. The hard way", Yurii Holiuk "Running students' code in isolation. The hard way", Yurii Holiuk
"Running students' code in isolation. The hard way", Yurii Holiuk
Fwdays24 views
PharoJS - Zürich Smalltalk Group Meetup November 2023 by Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi139 views
STPI OctaNE CoE Brochure.pdf by madhurjyapb
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdf
madhurjyapb14 views
The Forbidden VPN Secrets.pdf by Mariam Shaba
The Forbidden VPN Secrets.pdfThe Forbidden VPN Secrets.pdf
The Forbidden VPN Secrets.pdf
Mariam Shaba20 views
Future of AR - Facebook Presentation by Rob McCarty
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentation
Rob McCarty22 views

What's happening here?

  • 3. People want to talk about places
  • 9. Original attempts Adding it to the tweet ‣ Use myloc.me, et. al. to add text to the tweet ‣ Localizes mobile phone and puts location “in band” ‣ Takes from 140 characters Setting profile level locations ‣ 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
  • 12. curl -u USERNAME:PASSWORD -d location="San Francisco, California" http://twitter.com/account/update_location.xml <user> <id>8285392</id> <name>raffi</name> <screen_name>raffi</screen_name> <location>San Francisco, California</location> ... </user>
  • 14. 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)
  • 15. Sending an update status/update curl -u USERNAME:PASSWORD -d "status=hey-ho&lat=37.9&long=-122.3" http://twitter.com/status/update.xml <status> <text>hey-ho</text> ... <geo xmlns:georss="http://www.georss.org/georss> <georss:point>37.9 -122.3</georss:point> </geo> ... </user>
  • 17. Search search (with geocode) curl "http://search.twitter.com/search.atom? geocode=40.757929%2C-73.985506%2C25km&source=foursquare" geocode parameter takes “latitude,longitude,radius” where radius has units of mi or km ... <title>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</title> ... <twitter:geo> <georss:point>40.7759 -74.0129</georss:point> </twitter:geo> ...
  • 25. Streaming / Geo-hose (coming soon) location filtering curl "http://stream.twitter.com/1/statuses/filter.xml? locations=-74.5129,40.2759,-73.5019,41.2759" locations is a bounding box specified by “long1,lat1,long2,lat2” and can track up to 10 locations that are most 1 degree square (~60 miles square and enough to cover most metropolitan areas)
  • 28. Trends API (coming soon) Global trends ‣ Currently on front page of Twitter.com and on search.twitter.com ‣ Analysis of “hot conversations” ‣ Does not take from the 140 characters Location specific trends ‣ 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
  • 29. Available locations trends/available curl "http://api.twitter.com/1/trends/available.xml" Can optionally take a lat and long parameter to have trends locations returned, sorted, as distance from you. <locations type=”array”> <location> <woeid>2487956</woeid> <name>San Francisco</name> <placeTypeName code=”7”>Town</placeTypeName> <country type=”Country” code=”US”>United States</country> <url>http://where.yahooapis.com/v1/place/2487956</url> </location> ... </locations>
  • 30. Available locations trends/woeid.xml curl "http://api.twitter.com/1/trends/2487956.xml" Look up the trends at the given WOEID <matching_trends type=”array”> <trends as_of=”2009-12-15T20:19:09Z”> ... <trend url=”http://search.twitter.com/search?q=Golden+Globe+nominations” query=”Golden +Globe+nominations”>Golden Globe nominations</trend> <trend url=”http://search.twitter.com/search?q=%23somethingaintright” query=”%23somethingaintright”>#somethingaintright</trend> ... </trends> </matching_trends>
  • 32. Questions? Follow me at twitter.com/raffi TM