locate your hacks

38
Hacking up location aware apps Pradeep B V Developer under construction Yahoo! Developer Network http://slideshare.net/ pradeepbv @pradeepbv

Upload: pradeep-varadaraja-banavara

Post on 20-Jan-2015

380 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Locate your hacks

Hacking up location aware appsPradeep B VDeveloper under constructionYahoo! Developer Network

http://slideshare.net/pradeepbv

@pradeepbv

Page 2: Locate your hacks

Where?

http://www.flickr.com/photos/saveoursmile/5849236335/

Page 3: Locate your hacks

What’s around?

Page 4: Locate your hacks

http://www.flickr.com/photos/joeshlabotnik/422697043/

Page 5: Locate your hacks

http://www.flickr.com/photos/anonymouscollective/1899303123/

Page 6: Locate your hacks

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: Locate your hacks

World map as of 2011

http://en.wikipedia.org/wiki/World_map

Page 8: Locate your hacks

Beyond maps…

Page 9: Locate your hacks

Typical questions..

• Where?• Here?• Around?• Meta?• Who?• When?

Page 10: Locate your hacks

Current Location

www.flickr.com/photos/mukumbura/4092900623/

Page 11: Locate your hacks

Current Location

• Ask• Sniff• Infer

Page 12: Locate your hacks

Ask the user

Page 13: Locate your hacks

Ask the browser

http://isithackday.com/hacks/geo/js-location.html

Page 14: Locate your hacks

Ask the browserhttp://blog.ganeshzone.net/index.php/2011/05/geolocation-api-with-html5/

Page 15: Locate your hacks

Ask the browser

http://foursquare.com

Page 16: Locate your hacks

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: Locate your hacks

Sniff

http://sulekha.com, http://asklaila.comhttp://justdial.com

Page 18: Locate your hacks

IP Sniffing

http://isithackday.com/hacks/geo/js-location.html

Page 19: Locate your hacks

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: Locate your hacks

Infer

Page 21: Locate your hacks

Infer

Page 22: Locate your hacks

Query

Wikipedia

Page 23: Locate your hacks

Why go around when you have…

Page 24: Locate your hacks

select * from geo.placefinder where

text="iit mumbai"

GeoCoding

Page 25: Locate your hacks

select * from geo.placefinder

where text="12.9456651,

77.6472844" and gflags="R"

Reverse GeoCoding

Page 26: Locate your hacks

Yahoo! GeoPlanet™

http://where.yahooapis.com/v1/places.q('gateway+of+india')?appid=

WOEID – Where On Earth ID

Page 27: Locate your hacks

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: Locate your hacks

GeoPlanet Explorer

http://isithackday.com/geoplanet-explorer/

Page 29: Locate your hacks

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: Locate your hacks

SELECT * FROM geo.placemaker

WHERE documentURL = "http://www.mid-

day.com/news/2012/jul/250712-mumbai-Talking-a-toll.htm"

AND documentType="text/

html"

Page 31: Locate your hacks

Putting it all together

Demo: http://icant.co.uk/geomaker/index.php

Code: https://github.com/codepo8/GeoMaker

Page 32: Locate your hacks

Interesting hacks• http://trendsmap.com/local/in/mumbai

Page 33: Locate your hacks

http://christianheilmann.com/2009/07/14/rss2map-a-placemakeryahoo-maps-mashup/

Page 34: Locate your hacks

Awesome Apps

Page 35: Locate your hacks

Awesome Apps

Page 36: Locate your hacks

Augmented Reality

Layar

Wikitude

Metro AR

http://www.businessinsider.com/best-augmented-reality-apps-for-iphone-and-ios-2011-3?op=1

Page 37: Locate your hacks

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: Locate your hacks

http://www.snookerbacker.com/2011/04/24/crucible-day-9/