get started with location based services

36
LOCATION GET STARTED WITH BASED SERVICES Jean-Luc David @jldavid yellowapi.com

Upload: jean-luc-david

Post on 22-Nov-2014

1.692 views

Category:

Technology


2 download

DESCRIPTION

Presented at FITC SCREENS 2011 in Toronto, Canada. Location-based services (LBS) are more than just a trend, they are a set of tools that can help developers create personalized, immediate, user-centric applications. Today, as social networking has become engrained in our personal and professional lives, LBS has opened the door to creativity and can make apps more efficient.

TRANSCRIPT

Page 1: Get Started with Location Based Services

LOCATION GET STARTED WITH

BASED SERVICES

Jean-Luc David @jldavid yellowapi.com

Page 2: Get Started with Location Based Services
Page 3: Get Started with Location Based Services

SERVICES THAT LOCATE YOU.

Page 4: Get Started with Location Based Services

SERVICES THAT TELL PEOPLE WHERE YOU ARE.

Page 5: Get Started with Location Based Services

SERVICES THAT PROVIDE CONTEXT.

Page 6: Get Started with Location Based Services
Page 7: Get Started with Location Based Services
Page 8: Get Started with Location Based Services
Page 9: Get Started with Location Based Services
Page 10: Get Started with Location Based Services
Page 11: Get Started with Location Based Services

•Cross-platform development

•Finding quality data

•Places fragmentation

•Monetization

BigChallenges

Page 12: Get Started with Location Based Services

WIFI TRIANGULATION

Page 13: Get Started with Location Based Services

GPS TRIANGULATION

Page 14: Get Started with Location Based Services

CELLULAR TRIANGULATION

Page 15: Get Started with Location Based Services

@interface AddressAnnotation : NSObject<MKAnnotation> { CLLocationCoordinate2D coordinate; } @end -(id)initWithCoordinate:(CLLocationCoordinate2D) c{ coordinate=c; NSLog(@"%f,%f",c.latitude,c.longitude); return self; } @end

IPHONEGEOLOCATION

Page 16: Get Started with Location Based Services

LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);

LocationListener locationListener = new LocationListener() {    public void onLocationChanged(Location location) {      makeUseOfNewLocation(location);    }    public void onStatusChanged(String provider, int status, Bundle extras) {}    public void onProviderEnabled(String provider) {}    public void onProviderDisabled(String provider) {}  };

locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);

ANDROIDGEOLOCATION

Page 17: Get Started with Location Based Services

if (navigator.geolocation) {  navigator.geolocation.getCurrentPosition(success, err);} else {  error('not supported');}

HTML5GEOLOCATION

http://www.modernizr.comSupported in Firefox 3.5+, Chrome 5+, Opera 10.6+,

IE9+

Page 18: Get Started with Location Based Services

introducingIODOCSExploring, learning and testing YellowAPI is easy!

Use your API key, fill in the parameter fields and presto.

Page 19: Get Started with Location Based Services

HTTP://WWW.YELLOWAPI.COM

Page 20: Get Started with Location Based Services

•Cross-platform development

•Finding quality data

•Places fragmentation

•Monetization

BigChallenges

Page 21: Get Started with Location Based Services

UNCURATED DATA

Page 22: Get Started with Location Based Services

YELLOWAPI

STRAIGHT FROM THE SOURCE2250 SALES PEOPLE GATHERING

DATA700 INTERNAL CURATORS

11+ TELCOS

Page 23: Get Started with Location Based Services

•Cross-platform development

•Finding quality data

•Places fragmentation

•Monetization

BigChallenges

Page 24: Get Started with Location Based Services

LOTS OF LOCATION APIs

Page 25: Get Started with Location Based Services

What - Anything goes! Works best with categories & business names

YELLOWAPIWHAT

Page 26: Get Started with Location Based Services

Geo search Specific coordinates (lat/long) Ranking is based on proximity Great for LBS!Regional search Province, city, postal code, etc. Ranking is based on relevance within the specified region

WHEREYELLOWAPI

Page 27: Get Started with Location Based Services

http://api.yellowapi.com/FindBusiness/?what=cars&where=Montreal&fmt=json&

apiKey=<api key>&UID=demoappp

FIND BUSINESS

{summary: {searchType: "si",searchFlags: "",searchOrder: "located",what: "cafe",where: "montreal,qc",firstListing: 1,lastListing: 40,totalListings: 1420,pageCount: 36,currentPage: 1,listingsPerPage: 40,

YELLOWAPI

Page 28: Get Started with Location Based Services

http://api.yellowapi.com/GetBusinessDetails/?listingId=6418182&prov=-&bus-name=-

&apikey=<key>&UID=demoapp&fmt=json

GET BUSINESS DETAILSYELLOWAPI

id: "6418182",name: "Co-operators The",address: {street: "123 Cooper St",city: "Montreal",prov: "QC",pcode: "H1H 2J3"},merchantUrl: "http://www.yellowpages.ca/bus/Canada/-/6418182.html?ypid="} ...

Page 29: Get Started with Location Based Services
Page 30: Get Started with Location Based Services

Merchant ID: 123456

Venue ID: 655254

Places ID: ae1d5a44a565a5

. . .

Page 31: Get Started with Location Based Services

VENUES/SEARCH APIhttps://developer.foursquare.com/docs/

explore.html#req=venues/search?ll=45.469208,-73.538805&providerId=ypg

&linkedId=6338420

response: {venues: [{

Id: "4b1d1c48f964a520ee0b24e3"name: "Yellow Pages Group"contact: {phone: "5149342611"formattedPhone: "(514) 934-2611"

}location: {address: "16 Place du Commerce"lat: 45.469582lng: -73.539045...

Page 32: Get Started with Location Based Services

VENUE/LINKS APIhttps://developer.foursquare.com/docs/explore.html#req=venues/4b1d1c48f964a520ee0b24e3/links&v=20110705

response: {links: {

count: 1items: [

{provider: {id: "ypg"

}linkedId: "6338420"url:

"http://www.yellowpages.ca/bus/Quebec/Verdun/Yellow-Pages-Group-Montreal/6338420.html

}]

}}

Page 33: Get Started with Location Based Services

HTTP://DEVELOPER.FACTUAL.COM

Page 34: Get Started with Location Based Services

•Cross-platform development

•Finding quality data

•Places fragmentation

•Monetization

BigChallenges

Page 35: Get Started with Location Based Services

DEVELOPER PROGRAMSUPPORT FOR:

- INCUBATION $$$- DESIGN- DEVELOPMENT

MORE ABOUT THIS AND MORE IN BRAD WING’S TALK AT 2:00 PM IN THIS ROOM!

Page 36: Get Started with Location Based Services

•Cross-platform is facilitatedby right tools & SDKs

•Curated data > Uncurated data

•Look for hubs & harmonization

•Monetize your geolocal apps!

TakeAways

Jean-Luc David @jldavid yellowapi.com

[email protected]