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.
The Geo-Aware Parent   Matt Machell for Multipack Presents                Feb 2011
It started when I  became a dad
What if I had a web app tofind child-friendly places?
So I made a prototype    using Javascript
Python• code.google.com/edu/languages/  google-python-class/• diveintopython.org/
Let’s Build This With :         Pylons• More mix-n-match than Django• Good docs but some gaps• pylonshq.com• pylonsbook.com
Up and running...python go-pylons.py mydevenvsource mydevenv/bin/activateeasy_install sqlalchemyeasy_install makopaster cr...
Geo-locating• Code is really easy• Slow on desktops without GPS• Now in FF, Safari, Opera and IE!
if(navigator.geolocation){        navigator.geolocation.getCurrentPosition(function(position) {                var lat=pos...
Haversine Formulas• Cos the world isn’t flat
Geocoding• Need to match name to lat/long• Need to match lat/long to name• Need to match postcode to lat/long
Geonames Rocks!• Web Service APIs in JSON/XML/etc• Country specific targeting• Postcodes• www.geonames.org
Interface• Part of my “New Dad Site” blog• Lightweight HTML5, mostly forms• CSS3 transitions tied to :invalid
Some Assembly       Required• finder.newdadsite.com• @shuckle / @newdadsite• eclecticdreams.com
Upcoming SlideShare
Loading in …5
×

The Geo-aware Parent

1,824 views

Published on

10 minutes on my little web app for parents.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

The Geo-aware Parent

  1. 1. The Geo-Aware Parent Matt Machell for Multipack Presents Feb 2011
  2. 2. It started when I became a dad
  3. 3. What if I had a web app tofind child-friendly places?
  4. 4. So I made a prototype using Javascript
  5. 5. Python• code.google.com/edu/languages/ google-python-class/• diveintopython.org/
  6. 6. Let’s Build This With : Pylons• More mix-n-match than Django• Good docs but some gaps• pylonshq.com• pylonsbook.com
  7. 7. Up and running...python go-pylons.py mydevenvsource mydevenv/bin/activateeasy_install sqlalchemyeasy_install makopaster create -t pylons parentspaster controller locationspaster serve development.ini --reload
  8. 8. Geo-locating• Code is really easy• Slow on desktops without GPS• Now in FF, Safari, Opera and IE!
  9. 9. if(navigator.geolocation){ navigator.geolocation.getCurrentPosition(function(position) { var lat=position.coords.latitude; var long=position.coords.longitude; window.location=window.location+?geo=+lat+,+long; }, function() { //failure }, {maximumAge: 75000}); }
  10. 10. Haversine Formulas• Cos the world isn’t flat
  11. 11. Geocoding• Need to match name to lat/long• Need to match lat/long to name• Need to match postcode to lat/long
  12. 12. Geonames Rocks!• Web Service APIs in JSON/XML/etc• Country specific targeting• Postcodes• www.geonames.org
  13. 13. Interface• Part of my “New Dad Site” blog• Lightweight HTML5, mostly forms• CSS3 transitions tied to :invalid
  14. 14. Some Assembly Required• finder.newdadsite.com• @shuckle / @newdadsite• eclecticdreams.com

×