Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Location on the Web
Making Web Applications Location-aware
Ryan

• Director of Consumer Products at Skyhook
  Wireless
• Founded Locationaware.org which
  eventually became W3C Geol...
Seth


• Engineering lead for Fire Eagle at Yahoo!
• Developer evangelist
practical tools and code to
allow you to add location to
your web application today
location = context
higher
context =
          relevancy
higher
location =
           relevancy
location is relative
the world isn’t only points




        ... what constitutes a place?
WOEIDs
GeoPlanet
http://developer.yahoo.com/geo
Location Technologies
sensed vs. declared
 active vs. passive
sensed location
Three primary methods
1. IP Geolocation
2. Triangulation
  • GPS
  • Wi-Fi
  • Cell Tower

3. Declarative - just ask
IP Geolocation
Pros
 • Widely available
 • Detection happens server-side
Cons
 • Only accurate to the city-level
 • Only i...
IP Geolocation
Vendors

 • MaxMind - http://www.maxmind.com
  • Has a free database - GeoLite City
 • Quova - http://www.q...
Wi-Fi Positioning (WPS)
Pros
 • Accurate
 • Works indoors and in Urban Areas
 • Quick Time to First Fix
 • Software-only, ...
so, why should I use it?
considerations
privacy
precision
browser-based
(active) location
W3C Geolocation API
coalition of the willing
state of the union



http://www.flickr.com/photos/xrrr/2478140383/
• W3C Geolocation API support
  natively in Firefox 3.5




• Opera Labs release with W3C
  Geolocation API support



• S...
• Cross-platform, cross-browser plugin for
  adding geolocation to any website
• Locate a user down to their exact street
...
Tips for browser-
  based Geolocation
• Plan for asynchronous call - show status
  to user
• Request location on page load...
... shut up and get to the code
Simple Example
Plotting location on a
         map
Store Finder w/ Local
  Business Search
Position &
          Coordinates Objects
interface Position {
     readonly attribute Coordinates coords;
     readonly at...
PositionError Object
interface PositionError {
     const unsigned short UNKNOWN_ERROR = 0;
     const unsigned short PERM...
brokered (passive)
     location
• Location broker
• Ecosystem
• APIs for updating and querying (REST and
  XMPP)
• http://fireeagle.yahoo.net/developer
• <...
Tips for broker-based
     Geolocation
• Location is barely current--find ways to
  reduce latency
• Share--back to Fire Ea...
... shut up and get to the code
Querying a user’s
    location
Updating a user’s
   location
Receiving a user’s
location (real-time)
WhereCamp
     SocialText Office
     Palo Alto
     Friday and Saturday
     wherecamp.org
Questions?
Where 2.0 2009 - Location on the Web
Upcoming SlideShare
Loading in …5
×

Where 2.0 2009 - Location on the Web

15,862 views

Published on

Slides from Where 2.0 2009 Workshop - Location on the Web

Location aware websites, applications and devices can provide users with rich social connectivity, useful content, efficient movement around their environment, highly targeted advertising, and more. We will discuss the new W3C Geolocation API, location-aware browsers and other available tools that can add location to websites and applications.

While most devices now have functionality which make location determination possible, understanding these technologies and how they can be deployed into mobile devices and websites can be complicated.

In this session, we will discuss the technical details of the APIs available to help location-enable your websites, and how to deploy them. These tools include the W3C Geolocation API, Mozilla’s Geode, the Loki Plugin, Fire Eagle and Google’s My Location.

Published in: Technology

Where 2.0 2009 - Location on the Web

  1. Location on the Web Making Web Applications Location-aware
  2. Ryan • Director of Consumer Products at Skyhook Wireless • Founded Locationaware.org which eventually became W3C Geolocation API Working Group
  3. Seth • Engineering lead for Fire Eagle at Yahoo! • Developer evangelist
  4. practical tools and code to allow you to add location to your web application today
  5. location = context
  6. higher context = relevancy
  7. higher location = relevancy
  8. location is relative
  9. the world isn’t only points ... what constitutes a place?
  10. WOEIDs
  11. GeoPlanet http://developer.yahoo.com/geo
  12. Location Technologies
  13. sensed vs. declared active vs. passive
  14. sensed location
  15. Three primary methods 1. IP Geolocation 2. Triangulation • GPS • Wi-Fi • Cell Tower 3. Declarative - just ask
  16. IP Geolocation Pros • Widely available • Detection happens server-side Cons • Only accurate to the city-level • Only in the right state 85% of the time • Costly • Produces false positives
  17. IP Geolocation Vendors • MaxMind - http://www.maxmind.com • Has a free database - GeoLite City • Quova - http://www.quova.com • IPligence - http://www.ipilgence.com • IP2Location - http://www.ip2location.com
  18. Wi-Fi Positioning (WPS) Pros • Accurate • Works indoors and in Urban Areas • Quick Time to First Fix • Software-only, leverages existing Wi-Fi Cons • Doesn’t work well in rural areas
  19. so, why should I use it?
  20. considerations
  21. privacy
  22. precision
  23. browser-based (active) location
  24. W3C Geolocation API
  25. coalition of the willing
  26. state of the union http://www.flickr.com/photos/xrrr/2478140383/
  27. • W3C Geolocation API support natively in Firefox 3.5 • Opera Labs release with W3C Geolocation API support • Support in Chrome for Windows and Gears - desktop / Android
  28. • Cross-platform, cross-browser plugin for adding geolocation to any website • Locate a user down to their exact street address with a few lines of javascript • http://loki.com/how • </plug>
  29. Tips for browser- based Geolocation • Plan for asynchronous call - show status to user • Request location on page load if its available • Fallback to IP if necessary, but message it to user
  30. ... shut up and get to the code
  31. Simple Example
  32. Plotting location on a map
  33. Store Finder w/ Local Business Search
  34. Position & Coordinates Objects interface Position { readonly attribute Coordinates coords; readonly attribute DOMTimeStamp timestamp; }; interface Coordinates { readonly attribute double latitude; readonly attribute double longitude; readonly attribute double altitude; readonly attribute double accuracy; readonly attribute double altitudeAccuracy; readonly attribute double heading; readonly attribute double speed; };
  35. PositionError Object interface PositionError { const unsigned short UNKNOWN_ERROR = 0; const unsigned short PERMISSION_DENIED = 1; const unsigned short POSITION_UNAVAILABLE = 2; const unsigned short TIMEOUT = 3; readonly unsigned short code; readonly DOMString message; };
  36. brokered (passive) location
  37. • Location broker • Ecosystem • APIs for updating and querying (REST and XMPP) • http://fireeagle.yahoo.net/developer • </plug>
  38. Tips for broker-based Geolocation • Location is barely current--find ways to reduce latency • Share--back to Fire Eagle and with other users • Don’t violate users’ trust--say what you use their location for
  39. ... shut up and get to the code
  40. Querying a user’s location
  41. Updating a user’s location
  42. Receiving a user’s location (real-time)
  43. WhereCamp SocialText Office Palo Alto Friday and Saturday wherecamp.org
  44. Questions?

×