Hacking location aware apps
-
Upload
pradeep-varadaraja-banavara -
Category
Technology
-
view
840 -
download
1
description
Transcript of Hacking location aware apps
![Page 1: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/1.jpg)
Hacking up location aware apps
@pradeepbv
http://slideshare.net/pradeepbv
![Page 2: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/2.jpg)
Where?
http://www.flickr.com/photos/saveoursmile/5849236335/
![Page 3: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/3.jpg)
What’s around?
![Page 4: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/4.jpg)
http://www.flickr.com/photos/joeshlabotnik/422697043/
![Page 5: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/5.jpg)
http://www.flickr.com/photos/anonymouscollective/1899303123/
![Page 6: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/6.jpg)
Oldest known map
Imago Mundi Babylonian map, the oldest known world map, 6th century BCE Babylonia.
http://en.wikipedia.org/wiki/Early_world_maps
![Page 7: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/7.jpg)
World map as of 2011
http://en.wikipedia.org/wiki/World_map
![Page 8: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/8.jpg)
Beyond maps…
![Page 9: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/9.jpg)
Typical questions..
• Where?• Here?• Around?• Meta?• Who?• When?
![Page 10: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/10.jpg)
Current Location
www.flickr.com/photos/mukumbura/4092900623/
![Page 11: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/11.jpg)
Current Location
• Ask• Sniff• Infer
![Page 12: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/12.jpg)
Ask the user
![Page 13: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/13.jpg)
Ask the browser
http://isithackday.com/hacks/geo/js-location.html
![Page 14: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/14.jpg)
Ask the browserhttp://blog.ganeshzone.net/index.php/2011/05/geolocation-api-with-html5/
![Page 15: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/15.jpg)
Ask the browser
http://foursquare.com
![Page 16: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/16.jpg)
W3C geolocation APInavigator.geolocation.getCurrentPosition(function(position){ console.log(
'Your Coordinates are ’ +position.coords.latitude + ' & ’ +position.coords.longitude
);}
http://dev.w3.org/geo/api/spec-source.html
![Page 17: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/17.jpg)
Sniff
http://sulekha.comhttp://asklaila.com
![Page 18: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/18.jpg)
IP Sniffing
http://isithackday.com/hacks/geo/js-location.html
![Page 19: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/19.jpg)
IP Sniffing<script type="text/javascript" src="http://j.maxmind.com/app/geoip.js"></script>
• geoip_latitude • geoip_longitude • geoip_city• geoip_region• geoip_region_name• geoip_postal_code• geoip_country_code• geoip_country_name
http://www.maxmind.com/
![Page 20: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/20.jpg)
Infer
![Page 21: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/21.jpg)
Infer
![Page 22: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/22.jpg)
Query
Wikipedia
![Page 23: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/23.jpg)
Why go around when you have…
![Page 24: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/24.jpg)
select * from geo.placefinder where text="iit chennai"
GeoCoding
![Page 25: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/25.jpg)
select * from geo.placefinder
where text="12.9456651,
77.6472844" and gflags="R"
Reverse GeoCoding
![Page 26: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/26.jpg)
Yahoo! GeoPlanet™
http://where.yahooapis.com/v1/places.q('gandhi+mandapam')
WOEID – Where On Earth ID
![Page 27: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/27.jpg)
Yahoo! GeoPlanet™• geo.places.ancestors• geo.places.belongtos• geo.places.children• geo.places.common• geo.places.descendants• geo.places.neighbors• geo.places.parent• geo.places.siblings
http://developer.yahoo.com/geo/geoplanet/
![Page 28: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/28.jpg)
GeoPlanet Explorer
http://isithackday.com/geoplanet-explorer/
![Page 29: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/29.jpg)
SELECT * FROM geo.placemaker WHERE documentContent = "AR
Rahman received his oscar award in Los Angeles for a
movie made in Mumbai for which he composed music
in Chennai" AND documentType="text/plain
"
![Page 30: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/30.jpg)
SELECT * FROM geo.placemaker
WHERE documentURL =
"http://www.thehindu.com/news/cities/chennai/article3259316.
ece" AND documentType="text/
html"
![Page 31: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/31.jpg)
Putting it all together
Demo: http://icant.co.uk/geomaker/index.php
Code: https://github.com/codepo8/GeoMaker
![Page 32: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/32.jpg)
Interesting hacks• http://trendsmap.com/local/india
![Page 33: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/33.jpg)
http://christianheilmann.com/2009/07/14/rss2map-a-placemakeryahoo-maps-mashup/
![Page 34: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/34.jpg)
Awesome Apps
![Page 35: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/35.jpg)
Awesome Apps
![Page 36: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/36.jpg)
Augmented Reality
Layar
Wikitude
Metro AR
http://www.businessinsider.com/best-augmented-reality-apps-for-iphone-and-ios-2011-3?op=1
![Page 37: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/37.jpg)
Useful resources
• http://developer.yahoo.com/geo/• http://isithackday.com/hacks/geo/• http://isithackday.com/geoplanet-explorer/• http://developer.yahoo.com/geo/geoplanet/d
ata/
![Page 38: Hacking location aware apps](https://reader036.fdocuments.us/reader036/viewer/2022081414/54bd61ae4a79595e238b45cd/html5/thumbnails/38.jpg)
http://www.snookerbacker.com/2011/04/24/crucible-day-9/