SlideShare ist ein Scribd-Unternehmen logo
1 von 38
LOCATION.AWARE
How To Build Apps That Are Smarter
Sourav Chakraborty
WHERE
www.flickr.com/photos/mukumbura/4092900623/
WHAT'S AROUND
HOW TO GO THERE?
http://www.flickr.com/photos/anonymouscollective/1899303123/
MAPS
http://en.wikipedia.org/wiki/World_map
BEYOND MAPS
TYPICAL QUESTIONS
Where?
What's Happening Here?
What's Around?
When?
Who?
Meta?
CURRENT LOCATION
Ask
Sniff
Infer
ASK THE USER
ASK THE BROWSER
ASK THE BROWSER
http://blog.ganeshzone.net/index.php/
2011/05/geolocation-api-with-html5/
ASK THE BROWSER
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
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
INFER
QUERY
TOO MUCH TROUBLE?
TOO MANY MOVING PARTS?
TOO MANY APIS?
YQL
GEOCODING
select * from geo.placefinder where text = "iit hyderabad"
<latitude>17.34725</latitude>
<longitude>78.428177</longitude>
<city>Hyderabad</city>
<county>Hyderabad</county>
<state>Andhra Pradesh</state>
<country>India</country>
<countrycode>IN</countrycode>
<statecode>AP</statecode>
<countycode/>
<uzip>500064</uzip>
<woeid>2295414</woeid>
REVERSE GEOCODING
select * from geo.placefinder where text="37.416275,-122.025092"
and gflags="R"
<line1>718 1st Ave</line1>
<line2>Sunnyvale, CA 94089</line2>
<line3/>
<line4>United States</line4>
<house>718</house>
<street>1st Ave</street>
<postal>94089</postal>
<city>Sunnyvale</city>
<county>Santa Clara</county>
<state>California</state>
<country>United States</country>
<countrycode>US</countrycode>
<statecode>CA</statecode>
<uzip>94089</uzip>
<hash>23370B9241162954</hash>
<woeid>12797150</woeid>
<woetype>11</woetype>
WOEID
WHERE ON EARTH ID
WOEIDhttp://where.yahooapis.com/v1/places.q('hitech city')?appid=xyz
<place yahoo:uri="http://where.yahooapis.com/v1/place/55924382" xml:lang="en-
<woeid>55924382</woeid>
<placeTypeName code="22">Suburb</placeTypeName>
<name>Hitech City</name>
<country type="Country" code="IN" woeid="23424848">India</country>
<admin1 type="State" code="IN-AP" woeid="2345740">Andhra Pradesh</admin1>
<admin2 type="District" code="" woeid="12586344">Rangareddi</admin2>
<admin3/>
<locality1 type="Town" woeid="2295414">Hyderabad</locality1>
<locality2 type="Suburb" woeid="55924382">Hitech City</locality2>
WOEIDhttp://where.yahooapis.com/v1/place/55924382?appid=xyz&format=json
{
"place": {
"woeid": 55924382,
"placeTypeName": "Suburb",
"placeTypeName attrs": {
"code": 22
},
"name": "Hitech City",
"country": "India",
"country attrs": {
"type": "Country",
"code": "IN",
"woeid": 23424848
},
"locality2": "Hitech City",
"locality2 attrs": {
"type": "Suburb",
"woeid": 55924382
},
"postal": "",
"centroid": {
Yahoo! GeoPlanet
http://developer.yahoo.com/geo/geoplanet/
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
GeoPlanet Explorer
http://isithackday.com/geoplanet-explorer/
GEO.PLACEMAKER
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"
<matches>
<match>
<place xmlns="http://wherein.yahooapis.com/v1/schema">
<woeId>2295420</woeId>
<type>Town</type>
<name><![CDATA[Bangalore, Karnataka, IN]]></name>
<centroid>
<latitude>12.9558</latitude>
<longitude>77.621</longitude>
</centroid>
</place>
</match>
<match>
<place xmlns="http://wherein.yahooapis.com/v1/schema">
<woeId>2295386</woeId>
<type>Town</type>
<name><![CDATA[Kolkata, West Bengal, IN]]></name>
<centroid>
GEO.PLACEMAKER
SELECT * FROM geo.placemaker WHERE documentURL =
"www.telegraphindia.com/1120323/jsp/calcutta/index.jsp"
AND documentType="text/html"
<matches>
<match>
<place xmlns="http://wherein.yahooapis.com/v1/schema">
<woeId>29274615</woeId>
<type>POI</type>
<name><![CDATA[Hatibagan Market, Kolkata, West Bengal, IN]]></name>
<centroid>
<latitude>22.5944</latitude>
<longitude>88.3705</longitude>
</centroid>
</place>
</match>
<match>
<place xmlns="http://wherein.yahooapis.com/v1/schema">
<woeId>2295386</woeId>
<type>Town</type>
<name><![CDATA[Kolkata, West Bengal, IN]]></name>
<centroid>
<latitude>22.5499</latitude>
PUTTING IT TOGETHER
Demo: http://icant.co.uk/geomaker/index.php
Code: https://github.com/codepo8/GeoMaker
INTERESTING HACKS
http://trendsmap.com/local/india
AWESOME APPS
AUGMENTED REALITY
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/data/
QUESTIONS?

Weitere ähnliche Inhalte

Ähnlich wie Location.Aware

Hacking up location aware apps
Hacking up location aware appsHacking up location aware apps
Hacking up location aware apps
Anshu Prateek
 
Geolocation and Beer
Geolocation and BeerGeolocation and Beer
Geolocation and Beer
Neil Crosby
 
Library of Congress - Neogeography and Geospatial data preservation
Library of Congress - Neogeography and Geospatial data preservationLibrary of Congress - Neogeography and Geospatial data preservation
Library of Congress - Neogeography and Geospatial data preservation
Andrew Turner
 
Windows Phone 8 - 15 Location and Maps
Windows Phone 8 - 15 Location and MapsWindows Phone 8 - 15 Location and Maps
Windows Phone 8 - 15 Location and Maps
Oliver Scheer
 

Ähnlich wie Location.Aware (20)

Hacking up location aware apps
Hacking up location aware appsHacking up location aware apps
Hacking up location aware apps
 
Hacking location aware hacks HackU IIT Bombay
Hacking location aware hacks HackU IIT BombayHacking location aware hacks HackU IIT Bombay
Hacking location aware hacks HackU IIT Bombay
 
Locate your hacks
Locate your hacksLocate your hacks
Locate your hacks
 
Hacking location aware apps
Hacking location aware appsHacking location aware apps
Hacking location aware apps
 
Hacking up location aware apps
Hacking up location aware appsHacking up location aware apps
Hacking up location aware apps
 
Geolocation and Beer
Geolocation and BeerGeolocation and Beer
Geolocation and Beer
 
Seti 09
Seti 09Seti 09
Seti 09
 
Scrlc geo ppt
Scrlc geo pptScrlc geo ppt
Scrlc geo ppt
 
Library of Congress - Neogeography and Geospatial data preservation
Library of Congress - Neogeography and Geospatial data preservationLibrary of Congress - Neogeography and Geospatial data preservation
Library of Congress - Neogeography and Geospatial data preservation
 
M libraries final
M libraries finalM libraries final
M libraries final
 
Giovanni Laquidara - Hello ARCore - Codemotion Milan 2017
Giovanni Laquidara - Hello ARCore - Codemotion Milan 2017Giovanni Laquidara - Hello ARCore - Codemotion Milan 2017
Giovanni Laquidara - Hello ARCore - Codemotion Milan 2017
 
Fire Eagle presentation for IIT Delhi Hack U event
Fire Eagle presentation for IIT Delhi Hack U eventFire Eagle presentation for IIT Delhi Hack U event
Fire Eagle presentation for IIT Delhi Hack U event
 
Yahoo! Geo Technologies-IITD
Yahoo! Geo Technologies-IITDYahoo! Geo Technologies-IITD
Yahoo! Geo Technologies-IITD
 
O'Reilly WebCast - Trends And Technologies In Where2.0
O'Reilly WebCast - Trends And Technologies In Where2.0O'Reilly WebCast - Trends And Technologies In Where2.0
O'Reilly WebCast - Trends And Technologies In Where2.0
 
Making your site mobile-friendly - DevCSI Reading 21.07.2010
Making your site mobile-friendly - DevCSI Reading 21.07.2010Making your site mobile-friendly - DevCSI Reading 21.07.2010
Making your site mobile-friendly - DevCSI Reading 21.07.2010
 
W3C Geolocation
W3C GeolocationW3C Geolocation
W3C Geolocation
 
Zoom in on Mapping and Location
Zoom in on Mapping and LocationZoom in on Mapping and Location
Zoom in on Mapping and Location
 
Windows Phone 8 - 15 Location and Maps
Windows Phone 8 - 15 Location and MapsWindows Phone 8 - 15 Location and Maps
Windows Phone 8 - 15 Location and Maps
 
Up And Running With Web VR Fall 2014
Up And Running With Web VR Fall 2014Up And Running With Web VR Fall 2014
Up And Running With Web VR Fall 2014
 
Locate Your Hacks
Locate Your HacksLocate Your Hacks
Locate Your Hacks
 

Kürzlich hochgeladen

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

Location.Aware