HTML 5 Geolocation
   Wait, I mean W3C Geolocation




                        Andy Pemberton,
navigator.geolocation


getCurrentPosition(successCallback, errorCallback, options);
watchPosition(successCallback, errorCallback, options);
clearWatch(in long watchId);
The Specification

•    A JavaScript API that provides “scripted access to
     geographical location information”
    • http://dev.w3.org/geo/api/spec-source.html
• Features
www.andypemberton.com/geo
The “Old Way”
A few other thoughts...

• How does this work?
• What about IE...
• Reverse geolocation
  • www.andypemberton.com/geo/reverse.html
Where’s this headed?
References

• http://dev.w3.org/geo/api/spec-source.html
• http://www.andypemberton.com/geo/
• http://isithackday.com/hacks/geo/distance.php
        twitter.com/apemberton

W3C Geolocation

Editor's Notes

  • #2 \n
  • #3 Who had heard of w3c geolocation before today?\nWritten code? Using it on a production site?\n
  • #4 Get end users’ lat / long\nRequest push updates\nAccuracy\nSecurity baked into spec\n
  • #5 Anybody seen this site? What about the little circle?\nAlso in use on Flickr, Google home page (for mobile), Travelocity\n
  • #6 \n
  • #7 \n
  • #8 maxmind - http://www.maxmind.com/app/ip-location\n
  • #9 rssi = Received signal strength indication\nBssId = Basically the Mac address of your WAP (notably not the SSID)\n
  • #10 Pretty cool; interesting impacts...\neCommerce : sell better\nCMS products: generally target better content\nCMS, WCM, web engagement vendors\n example: Omniture test & target\n example: Drupal\n http://drupal.org/project/html5_user_geolocation\n http://drupal.org/project/geolocation\n http://drupal.org/project/context_geoip\n\n
  • #11 \n