More Related Content Similar to Hacking location aware hacks HackU IIT Bombay Similar to Hacking location aware hacks HackU IIT Bombay (20) More from Pradeep Varadaraja Banavara More from Pradeep Varadaraja Banavara (6) Hacking location aware hacks HackU IIT Bombay1. Hacking up
location aware apps
Pradeep B V
Developer under construction
Yahoo! Developer Network
http://slideshare.net/pradeepbv
@pradeepbv
6. Oldest known map
Imago Mundi Babylonian map, the oldest known world map, 6th century BCE Babylonia.
http://en.wikipedia.org/wiki/Early_world_maps
7. World map as of 2011
http://en.wikipedia.org/wiki/World_map
16. W3C geolocation API
navigator.geolocation.getCurrentPosition(function(position)
{
console.log(
'Your Coordinates are ’
+
position.coords.latitude
+'&’+
position.coords.longitude
);
}
http://dev.w3.org/geo/api/spec-source.html
19. 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/
24. GeoCoding
select * from
geo.placefinder where
text="iit mumbai"
25. Reverse GeoCoding
select * from
geo.placefinder
where
text="12.9456651,
77.6472844"
and gflags="R"
26. Yahoo! GeoPlanet™
http://where.yahooa
pis.com/v1/places.q('
gateway+of+india')?a
ppid=
27. 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/
29. 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
"
30. SELECT * FROM
geo.placemaker
WHERE documentURL
= "http://www.mid-
day.com/news/2012/j
ul/250712-mumbai-
Talking-a-toll.htm"
AND
documentType="text/
html"
31. Putting it all together
Demo: http://icant.co.uk/geomaker/index.php
Code: https://github.com/codepo8/GeoMaker
36. Augmented Reality
Metro AR
Wikitude
Layar
http://www.businessinsider.com/best-augmented-reality-apps-for-iphone-and-ios-2011-3?op=1
37. 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/