Open hack 2011-ppt-geo

32

description

Introduction to Geo Hacking.

Transcript of Open hack 2011-ppt-geo

Page 1: Open hack 2011-ppt-geo
Page 2: Open hack 2011-ppt-geo

INTODUCTION TO GEO HACKING

PRAJWAL BS, OPENHACKDAY, BANGALORE 30th MARCH OF 2011

Page 3: Open hack 2011-ppt-geo
Page 4: Open hack 2011-ppt-geo

LOCATION AWARENESS FOR A BETTER LIVING!

•  Navigation

•  Surveying

•  Business process

•  Warehouse and routing

•  Consumer

Page 5: Open hack 2011-ppt-geo

WHAT YAHOO OFFERS

Placefinder

YQL Geo and WOEIDs

Placemaker

Other location-centric data   Locals, Traffic, Maps & Weather.

Page 6: Open hack 2011-ppt-geo

LOCATION IS NOT JUST (LAT,LON)

•  Introducing WOEIDs

•  Location as a complex object

•  And sometimes it is hidden

*WOEID–WhereOnEarthID.

h0p://developer.yahoo.com/geo/geoplanet/guide/concepts.html#woeids

Page 7: Open hack 2011-ppt-geo

CONTEXTS FOR A LOCATION

•  Job opportunities

•  Deals

•  News portal

•  Matrimonial Advertisements

Page 8: Open hack 2011-ppt-geo

GEO HACKING

•  GOOD NEWS! - Not hard to do.

•  YQL as always has a solution to most geo problems.

Page 9: Open hack 2011-ppt-geo

REQUIREMENTS

•  Finding current location.

•  Turning a location into a place.

•  Finding geographical hierarchy.

•  Geo-tagging information.

•  Displaying geo information.

Page 10: Open hack 2011-ppt-geo

THE CREEPY WAY – IP SNIFFING

Page 11: Open hack 2011-ppt-geo

IP SNIFFING

Page 12: Open hack 2011-ppt-geo

EXAMPLE

h0p://isithackday.com/hacks/geo/js‐locaDon.html

Page 13: Open hack 2011-ppt-geo

NON CREEPY AND MORE ACCURATE W3C GEOLOCATION API

Page 14: Open hack 2011-ppt-geo

EXAMPLE

Page 15: Open hack 2011-ppt-geo

USERS SOCIAL PRESENCE

•  Get location information from users social presence.

•  FireEagle, Twitter, Yahoo, Brightkite, Facebook, Foursquare, Gowalla etc.

Page 16: Open hack 2011-ppt-geo

LOCATION BROKERAGE - FIREEAGLE

Page 17: Open hack 2011-ppt-geo

FIREEAGLE – API’S

Page 18: Open hack 2011-ppt-geo

REQUIREMENTS

•  Finding current location.

•  Turning a location into a place.

•  Finding geographical hierarchy.

•  Geo-tagging information.

•  Displaying geo information.

Page 19: Open hack 2011-ppt-geo

GEOCODING AND REVERSE-GEOCODING

converting street addresses or place names into geographic coordinates

(and vice versa).

h0p://developer.yahoo.com/yql/console/#h=desc%20geo.placefinder

Page 20: Open hack 2011-ppt-geo

PLACEFINDER

Page 21: Open hack 2011-ppt-geo

PLACEFINDER RESULT

h0p://developer.yahoo.com/geo/placefinder/

Page 22: Open hack 2011-ppt-geo

REQUIREMENTS

•  Finding current location.

•  Turning a location into a place.

•  Finding geographical hierarchy.

•  Geo-tagging information.

•  Displaying geo information.

Page 23: Open hack 2011-ppt-geo

YQL GEO.PLACES.*

•  geo.places.ancestors

•  geo.places.belongtos

•  geo.places.children

•  geo.places.common

•  geo.places.descendants

•  geo.places.neighbors

•  geo.places.parent

•  geo.places.siblings

Page 24: Open hack 2011-ppt-geo

GEO-PLANET EXPLORER

h0p://isithackday.com/geoplanet‐explorer/geodrilldown.php

Page 25: Open hack 2011-ppt-geo

REQUIREMENTS

•  Finding current location.

•  Turning a location into a place.

•  Finding geographical hierarchy.

•  Geo-tagging information.

•  Displaying geo information.

Page 26: Open hack 2011-ppt-geo

PLACEMAKER

Takes text/web URL and extracts the geographical information from it.

SELECT * FROM geo.placemaker WHERE documentContent = "Hey, I am in bangalore now. Will visit mumbai and delhi before going back to sunnyvale" AND documentType="text/plain"

Page 27: Open hack 2011-ppt-geo

EXAMPLES

SELECT * FROM geo.placemaker WHERE documentURL = "http://en.wikipedia.org/wiki/Country" AND documentType="text/html”

SELECT * FROM geo.placemaker WHERE documentURL = "http://timesofindia.feedsportal.com/c/33039/f/533917/index.rss" AND documentType="text/rss"

h0p://developer.yahoo.com/geo/placemaker/

Page 28: Open hack 2011-ppt-geo

REQUIREMENTS

•  Finding current location.

•  Turning a location into a place.

•  Finding geographical hierarchy.

•  Geo-tagging information.

•  Displaying geo information.

Page 29: Open hack 2011-ppt-geo

PLOT LAT/LON ON YAHOO MAPS!

Page 30: Open hack 2011-ppt-geo
Page 31: Open hack 2011-ppt-geo

USEFUL LINKS

http://isithackday.com/hacks/geo/

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

http://isithackday.com/hacks/geo/yql-geo-library/

http://www.hostip.info/

Page 32: Open hack 2011-ppt-geo

LETS LOCATE YOUR HACK!

THANKS!!

If you throw a guy on Foursquare and a guy on Twitter off a cliff, which one would hit the ground first?

The guy on Twitter. The guy on Foursquare would have to stop halfway down to check in!

PRAJWAL BS Twitter - @prajwalbs Slideshare - http://www.slideshare.net/prajwalbs Facebook - http://www.facebook.com/prajwalbs