Upload
jean-luc-david
View
1.694
Download
2
Embed Size (px)
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.
Citation preview
LOCATION GET STARTED WITH
BASED SERVICES
Jean-Luc David @jldavid yellowapi.com
SERVICES THAT LOCATE YOU.
SERVICES THAT TELL PEOPLE WHERE YOU ARE.
SERVICES THAT PROVIDE CONTEXT.
•Cross-platform development
•Finding quality data
•Places fragmentation
•Monetization
BigChallenges
WIFI TRIANGULATION
GPS TRIANGULATION
CELLULAR TRIANGULATION
@interface AddressAnnotation : NSObject<MKAnnotation> { CLLocationCoordinate2D coordinate; } @end -(id)initWithCoordinate:(CLLocationCoordinate2D) c{ coordinate=c; NSLog(@"%f,%f",c.latitude,c.longitude); return self; } @end
IPHONEGEOLOCATION
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
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+
introducingIODOCSExploring, learning and testing YellowAPI is easy!
Use your API key, fill in the parameter fields and presto.
HTTP://WWW.YELLOWAPI.COM
•Cross-platform development
•Finding quality data
•Places fragmentation
•Monetization
BigChallenges
UNCURATED DATA
YELLOWAPI
STRAIGHT FROM THE SOURCE2250 SALES PEOPLE GATHERING
DATA700 INTERNAL CURATORS
11+ TELCOS
•Cross-platform development
•Finding quality data
•Places fragmentation
•Monetization
BigChallenges
LOTS OF LOCATION APIs
What - Anything goes! Works best with categories & business names
YELLOWAPIWHAT
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
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
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="} ...
Merchant ID: 123456
Venue ID: 655254
Places ID: ae1d5a44a565a5
. . .
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...
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
}]
}}
HTTP://DEVELOPER.FACTUAL.COM
•Cross-platform development
•Finding quality data
•Places fragmentation
•Monetization
BigChallenges
DEVELOPER PROGRAMSUPPORT FOR:
- INCUBATION $$$- DESIGN- DEVELOPMENT
MORE ABOUT THIS AND MORE IN BRAD WING’S TALK AT 2:00 PM IN THIS ROOM!
•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