Hacking up location aware apps

Post on 20-Jan-2015

1,017 views 0 download

Tags:

description

 

transcript

Hacking up location aware apps

@pradeepbv

http://slideshare.net/pradeepbv

Where?

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

What’s around?

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

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

Oldest known map

Imago Mundi Babylonian map, the oldest known world map, 6th century BCE Babylonia.

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

World map as of 2011

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

Beyond maps…

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

Typical questions..

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

Current Location

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

Current Location

• Ask• Sniff• Infer

Ask the user

Ask the browser

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

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

Ask the browser

http://foursquare.com

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

Sniff

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

IP Sniffing

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

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/

Infer

Infer

Query

Wikipedia

Why go around when you have…

select * from geo.placefinder where text="iit kharagpur"

GeoCoding

select * from geo.placefinder

where text="12.9456651,

77.6472844" and gflags="R"

Reverse GeoCoding

Yahoo! GeoPlanet™

http://where.yahooapis.com/v1/places.q('howrah+bridge’)

WOEID – Where On Earth ID

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/

GeoPlanet Explorer

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

SELECT * FROM geo.placemaker WHERE

documentContent = "While Deepika is from Bangalore,

Bipasha is from Kolkata they predominantly act in movies made in Mumbai"

AND documentType="text/plain

"

SELECT * FROM geo.placemaker

WHERE documentURL =

"www.telegraphindia.com/1120323/jsp/calcutta/index.jsp" AND documentType="text/

html"

Putting it all together

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

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

Interesting hacks• http://trendsmap.com/local/india

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

Awesome Apps

Awesome Apps

Augmented Reality

Layar

Wikitude

Metro AR

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

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/

Awesome Apps

Questions?