Your SlideShare is downloading. ×
Mapping Tweets On The Go
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Mapping Tweets On The Go

1,499
views

Published on

Convergence of Maps, Social, and LBS on Mobile devices

Convergence of Maps, Social, and LBS on Mobile devices

Published in: Technology, News & Politics

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,499
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Mapping Tweets on the Go Convergence of Social, Mobile and Location-Based Services Shawn Shen Developer Advocate Google   Nov 17, '09
  • 2. Three Powerful Trends
      • Social Web and Apps: Facebook/Twitter 
      • Mobile Web and Mobile Apps 
    •  
      • Location, Maps, and LBS
  • 3. Google Maps (now Mobile)
      • Maps API V3
        • Designed with Model View Controller (MVC)
        • Optimized for Mobile apps
      • Local Search APIs
      • Monetization
        • Map Ad Unit
        • GoogleBar
        • AdSense for Mobile
        • AdSense for Mobile Apps 
        • AdMob...
  • 4. Social Networks Going Geo
      • Twitter 
        • Grown 10-15x in 2009 at ~50M users
        • Working on geo/location APIs
          • Location-based Trend APIs
          • Location-aware Tweets with Lat/Long
      • Facebook
        • 300M+ users
        • Platform of Apps: $800M run rate
        • Working on geo-location-based services
      • Social APIs and Platforms
        • 200-300K developers
        • Billions of app installs
  • 5. Mobile Apps and Mobile Web
      • Mobile Apps
        • iPhone: 100K+ apps; billions of installs
        • Android: 
          • 13K+ apps
          • Google Maps Navigation 
        • 100K+ developers
      • Mobile Web
        • Usage growth 100-200% y/y
        • Monthly unique users 1/3 of web 80-100M 
      • Ads market
        • $500M+
        • AdMob acquired by Google
  • 6. Convergence of the Three Trends
      • Social Web and Apps: Facebook + Twitter
      • Mobile Web and Mobile Apps
      • Location-aware services on Google Maps
    •  
    •  
    •     Google Maps + Social + Mobile
    •    => Lots of Creative Apps
  • 7. Dec '09 Geo Hackathon at Googleplex
      • Time: 12/15 Tues
      • Location: 
          • Bodega Bay Tech Talk
          • 1950 Charleston Ave
          • Googleplex
          • Mountain View, CA
      • RSVP at :
    • http://bit.ly/2KdlYJ
    •   or http://www.meetup.com/webmapsocial/calendar/11877554/
  • 8. Demo App: Mapping Tweets on the Go iUI : Library for web apps on mobile phones
  • 9. Location-aware Tweets
  • 10. Demo & References
    • http://mmmop.com
    •  
    • Links
      • iUI: http://code.google.com/p/iui/
      • python-twitter: 
        • http://code.google.com/p/python-twitter/
      • Blog by Bob Hitching: mobile web apps
        • http://bit.ly/1Uh2Ph
      • Maps Javascript API V3
        • http://code.google.com/apis/maps/documentation/v3/
  • 11. How Does the Demo App Work?
      • Front-end
        • iUI : Look and Feel of Native App
        • Google Maps API V3 : optimized for mobile
    •  
      • Back-end  
        • Google App Engine
        • python-twitter library
        • Twitter APIs
  • 12. Get Geo Location
    •                         navigator.geolocation.getCurrentPosition(function(position) {      // success - geolocation authorized by user.                        
    •      map.setOptions({         center: new google.maps.LatLng(
    •                  position.coords.latitude, position.coords.longitude),         zoom: 11      });    }, function() {      // fail - geolocation denied by user. do nothing.
    •    });
  • 13. Get Geo-tagged Tweets
    •            tweets = api.GetUserTimeline()            buff = '<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>' + &quot; &quot;            buff = buff + &quot;<markers> &quot;            for u in tweets:                id = u.GetId()                ddd = api.GetStatus(id)                dd = json.read(ddd)                for g in dd.iterkeys():                  if g == 'geo' and dd[g] != None :
    •                        buff = buff + &quot; <marker &quot;                        buff = buff + 'id=&quot;' + str(u.GetId()) + '&quot; '                        ...
    •            buff = buff + &quot;</markers> &quot;
    •            self.response.out.write(buff)
  • 14. Put Geo Tweets as Markers
    • downloadUrl('tw.php', addTweets);
    • function addTweets(data) { 
    •    var m = data.documentElement.getElementsByTagName(&quot;marker&quot;);    for (var i = 0; i < m.length; i++) {          ...          lat = parseFloat(m[i].getAttribute(&quot;lat&quot;));          lng = parseFloat(m[i].getAttribute(&quot;lng&quot;));
    •          ...          marker = new google.maps.Marker({                           position: new google.maps.LatLng(lat, lng),                           ...                         });    }
    • }
  • 15. More Services: Local Search
  • 16. Monetization: Map Ad Unit
  • 17. Monetization: GoogleBar
  • 18. Dec '09 Geo Hackathon
      • Google Maps/Earth APIs
      • Time: 12/15 Tues
      • Location: 
          • Bodega Bay Tech Talk
          • 1950 Charleston Ave
          • Googleplex
          • Mountain View, CA
      • RSVP at :
    • http://bit.ly/2KdlYJ
    •   or http://www.meetup.com/webmapsocial/calendar/11877554/

×