SlideShare ist ein Scribd-Unternehmen logo
1 von 45
WordCampCB Location Based Services
Hash Tags and Whatnot #wccb – WordCamp Columbus #wccb #lbs – LBS Session
Introductions 50% of the United States population lives  within a 500 mile radius of Columbus.
Who are You and Why are You here? Understanding Ideas or Insights Technologies
Introductions @LukePilon Software Architect WordPress 4 Years as a User 2 Years Designing Software Community Involvement CEO at Mobiah AC/DC, Lolcats, and the 80s Movies Mobiah, Inc Services, Software, Data Acquisition and Loyalty GPL Software Producers of GeoPosty 3 Plugins in the .ORG Repository
Content for Today Orientation – What is a LBS Logic – When to leverage LBS Methods – Access User Location Basic Delivery – How to Deliver a Simple LBS Loop
What the what Location-Based Services refers to a broad range of services that are based on (or enhanced by) information about the physical location of a user and/or device. $10 billion in revenue by 2016* http://www.businesswire.com/news/home/20110609006492/en/Strategy-Analytics-Cellphone-Privacy-Concerns-Short-Term-Barrier
What is a LBS? They are a LBS and you are a LBS Everyone’s a LBS, S, S, S….
Location Based Services	 The time and place to use them.
Location is Important What level of location do you actually need before your user starts to see value? Continent  Nation State City Block
Use Cases Ad Targeting Digital Rights Management Localizing Content Fraud Prevention
Use Cases and You Providing Specific Deals, Moving Inventory Protecting Your Content Rights / Restrictions Enriching the User’s Experience  Blocking Unauthorized Users
Food For Thought on LBS 20% of all Google Searches Performed on a Desktop Involve Location 40% of all Google Searches Performed on a Mobile Devices Involve Location
Accessing User Location
Implementations IP Geolocation HTML5
IP Geolocation You have an IP Address & we know geographically where that is.
IP GEO Properties Always On Static in Nature No Permission 25-50 Mile Localization
IP GEO LIBRARIESHow it gets done Agreements with ISPs AppSourcing the Crowd Mad Scientists with Mad Bots Wifi Libraries
IP Geo Libraries Service Providers IP2Location MaxMind Quova, a Neustar Service Libraries in General 4B IP Addresses ~ 20% Actively Changing Accessible via DB, API
Plugins that do IP Geo GeoPosty 4,084 Downloads – 4.25 Stars Quova IP Technology IP2Location Tags – 468 Downloads – 5 Stars IP2Location IP Technology WP Geolocation– 1,120 Downloads – 2.75 Stars MaxMind IP Technology
Plugin Features Shortcodes Preconfigured Widgets Redirection 3rd Party LBS Integrations
Obligatory CODE SLIDE <?php echo do_shortcode('[geocity]');  ?> [geolongitude] and [geolatitude]
HTML5 Geolocation Permission based access to users’ location.
HTML5 Background A collection of HTML standards being brought into adoption. Not something that’s going to show up all at once, not even on your birthday. #sorry Many features are already in adoption with current browsers.
HMTL5 Geolocation A singular feature of the HTML5 Standard Off By Default Can be coded as dynamic Permission Based, Error handling can be difficult ~ 12 Meter Localization
HTML5 Geolocation APIHow it Gets Done Cell Tower Triangulation Device GPS IP Geo Libraries
HTML5 Geolocation API IE – 9.0+ Firefox – 3.5+ Safari – 5.0+ Chrome – 5.0+ Opera – 10.6 iPhone – 3.0+ Android – 2.0+ http://diveintohtml5.org/geolocation.html
Browser Adoption
IE Support #Fail
Firefox Support
A Safe AssumptionBefore the Opt-In 1+ out of 2 Users  Can Currently Support HTML5 Geolocation
Google Analytics Will Set You Free
Plugins
Obligatory CODE SLIDE function get_location() { navigator.geolocation.getCurrentPosition(show_map); } // Callback function once location has been granted function show_map(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; // let's show a map or do something interesting! }
Stand and Deliver You, or your client, as an LBS
Best Practices Location, Location, Location with Balance, Balance, Balance Give the User A Logical Exit Don’t Be Evil, Get Consent, Allow Record Removal Privacy Policy FTW
Never, Never Never Ever Hello [geocity]! Welcome to my site!  #FAIL #FAIL #FAIL #FAIL
Super Simple LBSing. Step 1:  Put Your Content to City Categories Step 2:  Load The User’s Location Into Shortcodes Step 3:  Get Loopy
The Basic Geo Loop <?php$city = do_shortcode('[geocity]');$args = array('category_name' => $city);$myCityQuery = new WP_Query($args);if ($myCityQuery->have_posts()): while ($myCityQuery->have_posts()): $myCityQuery->the_post();//post stuffendwhile; endif; ?>
Bonus Material
CODE – Useful Functions // http://snipplr.com/view/2531/calculate-the-distance-between-two-coordinates-latitude-longitude/ function getGeoDistance($lat1, $lng1, $lat2, $lng2, $miles = true) { 	$pi80 = M_PI / 180; 	$lat1 *= $pi80; 	$lng1 *= $pi80; 	$lat2 *= $pi80; 	$lng2 *= $pi80; 	$r = 6372.797; // mean radius of Earth in km 	$dlat = $lat2 - $lat1; 	$dlng = $lng2 - $lng1; 	$a = sin($dlat / 2) * sin($dlat / 2) + cos($lat1) * cos($lat2) * sin($dlng / 2) * sin($dlng / 2); 	$c = 2 * atan2(sqrt($a), sqrt(1 - $a)); 	$km = $r * $c; 	return ($miles ? ($km * 0.621371192) : $km); }
CODE – Useful Functions // http://www.hashbangcode.com/blog/search-engine-spider-detection-php-258.html function geoSpiderDetect() { 	$agentArray = array("ArchitextSpider", "Googlebot", "TeomaAgent", 		"Zyborg", "Gulliver", "Architext spider", "FAST-WebCrawler", 		"Slurp", "Ask Jeeves", "ia_archiver", "Scooter", "Mercator", 		"crawler@fast", "Crawler", "InfoSeek Sidewinder", 		"almaden.ibm.com", "appie 1.1", "augurfind", "baiduspider", 		"bannana_bot", "bdcindexer", "docomo", "frooglebot", "geobot", 		"henrythemiragorobot", "sidewinder", "lachesis", "moget/1.0", 		"nationaldirectory-webspider", "naverrobot", "ncsa beta", 		"netresearchserver", "ng/1.0", "osis-project", "polybot", 		"pompos", "seventwentyfour", "steeler/1.3", "szukacz", 		"teoma", "turnitinbot", "vagabondo", "zao/0", "zyborg/1.0", 		"Lycos_Spider_(T-Rex)", "Lycos_Spider_Beta2(T-Rex)", 		"Fluffy the Spider", "Ultraseek", "MantraAgent","Moget", 		"T-H-U-N-D-E-R-S-T-O-N-E", "MuscatFerret", "VoilaBot", 		"Sleek Spider", "KIT_Fireball", "WISEnut", "WebCrawler", 		"asterias2.0", "suchtop-bot", "YahooSeeker", "ai_archiver", 		"Jetbot" 	);
Parting Remarks Imagine 2015
Parting Remarks Go do something excellent.
Questions?  Luke Pilon luke@mobiah.com @lukepilon

Weitere ähnliche Inhalte

Andere mochten auch

Jeopardy Game- Unit 3
Jeopardy Game- Unit 3Jeopardy Game- Unit 3
Jeopardy Game- Unit 3
mrcaseysclass
 
Tips for the Better Life in 2011- Cactus blooms
Tips for the Better Life in 2011- Cactus bloomsTips for the Better Life in 2011- Cactus blooms
Tips for the Better Life in 2011- Cactus blooms
Bhim Upadhyaya
 
V sphere 5.1-storage-features-&-futures
V sphere 5.1-storage-features-&-futuresV sphere 5.1-storage-features-&-futures
V sphere 5.1-storage-features-&-futures
subtitle
 
Nepal pokhara armala sinkhole investigation final-report
Nepal pokhara armala sinkhole investigation final-reportNepal pokhara armala sinkhole investigation final-report
Nepal pokhara armala sinkhole investigation final-report
Bhim Upadhyaya
 
Green it vmug presentation v1
Green it vmug presentation v1Green it vmug presentation v1
Green it vmug presentation v1
subtitle
 
AIGA 17 San Diego - Drive - Mobile and Geo Awesomesauce
AIGA 17 San Diego - Drive - Mobile and Geo AwesomesauceAIGA 17 San Diego - Drive - Mobile and Geo Awesomesauce
AIGA 17 San Diego - Drive - Mobile and Geo Awesomesauce
lukepilon
 

Andere mochten auch (20)

Unit 4, Lesson 2
Unit 4, Lesson 2Unit 4, Lesson 2
Unit 4, Lesson 2
 
Jeopardy Game- Unit 3
Jeopardy Game- Unit 3Jeopardy Game- Unit 3
Jeopardy Game- Unit 3
 
Shiva ultimate-outlaw by sadhguru
Shiva ultimate-outlaw by sadhguruShiva ultimate-outlaw by sadhguru
Shiva ultimate-outlaw by sadhguru
 
Unit 2, Lesson 1
Unit 2, Lesson 1Unit 2, Lesson 1
Unit 2, Lesson 1
 
Unit4, Lesson3
Unit4, Lesson3Unit4, Lesson3
Unit4, Lesson3
 
Bhutan civil service act 2010
Bhutan civil service act 2010Bhutan civil service act 2010
Bhutan civil service act 2010
 
The pitch - what they don´t tell you
The pitch - what they don´t tell youThe pitch - what they don´t tell you
The pitch - what they don´t tell you
 
Tips for the Better Life in 2011- Cactus blooms
Tips for the Better Life in 2011- Cactus bloomsTips for the Better Life in 2011- Cactus blooms
Tips for the Better Life in 2011- Cactus blooms
 
Everything changed - Lisbon Challenge
Everything changed  - Lisbon ChallengeEverything changed  - Lisbon Challenge
Everything changed - Lisbon Challenge
 
Nepal india power trade draft agreement proposed by india 2014
Nepal india power trade draft agreement proposed by india 2014Nepal india power trade draft agreement proposed by india 2014
Nepal india power trade draft agreement proposed by india 2014
 
V sphere 5.1-storage-features-&-futures
V sphere 5.1-storage-features-&-futuresV sphere 5.1-storage-features-&-futures
V sphere 5.1-storage-features-&-futures
 
Mofald ldo and dto relation draft report by reshmiraj committee
Mofald ldo and dto relation draft report by reshmiraj committeeMofald ldo and dto relation draft report by reshmiraj committee
Mofald ldo and dto relation draft report by reshmiraj committee
 
Il futuro dei CSS è nel tuo browser
Il futuro dei CSS è nel tuo browserIl futuro dei CSS è nel tuo browser
Il futuro dei CSS è nel tuo browser
 
Nepal pokhara armala sinkhole investigation final-report
Nepal pokhara armala sinkhole investigation final-reportNepal pokhara armala sinkhole investigation final-report
Nepal pokhara armala sinkhole investigation final-report
 
Introduktion til elektroniske ressourcer for historie
Introduktion til elektroniske ressourcer for historieIntroduktion til elektroniske ressourcer for historie
Introduktion til elektroniske ressourcer for historie
 
Green it vmug presentation v1
Green it vmug presentation v1Green it vmug presentation v1
Green it vmug presentation v1
 
AIGA 17 San Diego - Drive - Mobile and Geo Awesomesauce
AIGA 17 San Diego - Drive - Mobile and Geo AwesomesauceAIGA 17 San Diego - Drive - Mobile and Geo Awesomesauce
AIGA 17 San Diego - Drive - Mobile and Geo Awesomesauce
 
Narendra modi
Narendra modiNarendra modi
Narendra modi
 
SharePoint Saturday UK - Measuring the Intangible, SharePoint ROI
SharePoint Saturday UK - Measuring the Intangible, SharePoint ROISharePoint Saturday UK - Measuring the Intangible, SharePoint ROI
SharePoint Saturday UK - Measuring the Intangible, SharePoint ROI
 
Kep 01 thn 95
Kep 01 thn 95Kep 01 thn 95
Kep 01 thn 95
 

Ähnlich wie WordCamp Columbus - Location Based Integrations

KazooCon 2014 - Kazoo Scalability
KazooCon 2014 - Kazoo ScalabilityKazooCon 2014 - Kazoo Scalability
KazooCon 2014 - Kazoo Scalability
2600Hz
 
Sukumar Nayak-Agile-DevOps-Cloud Management
Sukumar Nayak-Agile-DevOps-Cloud ManagementSukumar Nayak-Agile-DevOps-Cloud Management
Sukumar Nayak-Agile-DevOps-Cloud Management
Sukumar Nayak
 

Ähnlich wie WordCamp Columbus - Location Based Integrations (20)

Hack your business android+beacons+big data
Hack your business  android+beacons+big dataHack your business  android+beacons+big data
Hack your business android+beacons+big data
 
Location Based Services Without the Cocoa
Location Based Services Without the CocoaLocation Based Services Without the Cocoa
Location Based Services Without the Cocoa
 
Connect js nodejs_api_shubhra
Connect js nodejs_api_shubhraConnect js nodejs_api_shubhra
Connect js nodejs_api_shubhra
 
Resume - William Crews - iOS Mobile App Developer 03-17-2016
Resume - William Crews - iOS Mobile App Developer 03-17-2016Resume - William Crews - iOS Mobile App Developer 03-17-2016
Resume - William Crews - iOS Mobile App Developer 03-17-2016
 
Externalizing Authorization in Micro Services world
Externalizing Authorization in Micro Services worldExternalizing Authorization in Micro Services world
Externalizing Authorization in Micro Services world
 
We don’t need no stinkin app server! Building a Two-Tier Mobile App
We don’t need no stinkin app server! Building a Two-Tier Mobile AppWe don’t need no stinkin app server! Building a Two-Tier Mobile App
We don’t need no stinkin app server! Building a Two-Tier Mobile App
 
KazooCon 2014 - Kazoo Scalability
KazooCon 2014 - Kazoo ScalabilityKazooCon 2014 - Kazoo Scalability
KazooCon 2014 - Kazoo Scalability
 
Seattle StrongLoop Node.js Workshop
Seattle StrongLoop Node.js WorkshopSeattle StrongLoop Node.js Workshop
Seattle StrongLoop Node.js Workshop
 
Where 2.0 2009 - Location on the Web
Where 2.0 2009 - Location on the WebWhere 2.0 2009 - Location on the Web
Where 2.0 2009 - Location on the Web
 
Mobile SDK: Considerations & Best Practices
Mobile SDK: Considerations & Best Practices Mobile SDK: Considerations & Best Practices
Mobile SDK: Considerations & Best Practices
 
Evolving big microservice architectures
Evolving big microservice architecturesEvolving big microservice architectures
Evolving big microservice architectures
 
Sukumar Nayak-Agile-DevOps-Cloud Management
Sukumar Nayak-Agile-DevOps-Cloud ManagementSukumar Nayak-Agile-DevOps-Cloud Management
Sukumar Nayak-Agile-DevOps-Cloud Management
 
@@@Resume2016 11 11_v001
@@@Resume2016 11 11_v001@@@Resume2016 11 11_v001
@@@Resume2016 11 11_v001
 
Location based reminder
Location based reminderLocation based reminder
Location based reminder
 
Application Modernisation with PKS
Application Modernisation with PKSApplication Modernisation with PKS
Application Modernisation with PKS
 
Application Modernisation with PKS
Application Modernisation with PKSApplication Modernisation with PKS
Application Modernisation with PKS
 
Angel Beat, San Francisco 3.14.01
Angel Beat, San Francisco 3.14.01Angel Beat, San Francisco 3.14.01
Angel Beat, San Francisco 3.14.01
 
Mobile Web Application Development (An Insight)
Mobile Web Application Development (An Insight)Mobile Web Application Development (An Insight)
Mobile Web Application Development (An Insight)
 
Building a Bank with Go
Building a Bank with GoBuilding a Bank with Go
Building a Bank with Go
 
All Things API Presentation - Gordon Weakleim [HomeAway]
All Things API Presentation - Gordon Weakleim [HomeAway]All Things API Presentation - Gordon Weakleim [HomeAway]
All Things API Presentation - Gordon Weakleim [HomeAway]
 

Mehr von lukepilon (7)

WordCamp San Diego - Raising Money For A Business in GPL
WordCamp San Diego - Raising Money For A Business in GPLWordCamp San Diego - Raising Money For A Business in GPL
WordCamp San Diego - Raising Money For A Business in GPL
 
WordCamp San Diego - The WordPress Community is Coming to Get You
WordCamp San Diego - The WordPress Community is Coming to Get YouWordCamp San Diego - The WordPress Community is Coming to Get You
WordCamp San Diego - The WordPress Community is Coming to Get You
 
Location Based Salad - Future of Web Applications - Las Vegas 2011
Location Based Salad - Future of Web Applications - Las Vegas 2011Location Based Salad - Future of Web Applications - Las Vegas 2011
Location Based Salad - Future of Web Applications - Las Vegas 2011
 
WordPress San Diego Meetup - Sharing Made Easy
WordPress San Diego Meetup - Sharing Made EasyWordPress San Diego Meetup - Sharing Made Easy
WordPress San Diego Meetup - Sharing Made Easy
 
WordCamp Reno - WP Network Effects
WordCamp Reno - WP Network EffectsWordCamp Reno - WP Network Effects
WordCamp Reno - WP Network Effects
 
WordCamp OC - Mobile and Geo Strategies
WordCamp OC - Mobile and Geo StrategiesWordCamp OC - Mobile and Geo Strategies
WordCamp OC - Mobile and Geo Strategies
 
WordCamp Los Angeles Keynote : WP, GPL and VC
WordCamp Los Angeles Keynote : WP, GPL and VC WordCamp Los Angeles Keynote : WP, GPL and VC
WordCamp Los Angeles Keynote : WP, GPL and VC
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
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
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
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
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
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
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
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 Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

WordCamp Columbus - Location Based Integrations

  • 2. Hash Tags and Whatnot #wccb – WordCamp Columbus #wccb #lbs – LBS Session
  • 3. Introductions 50% of the United States population lives within a 500 mile radius of Columbus.
  • 4. Who are You and Why are You here? Understanding Ideas or Insights Technologies
  • 5. Introductions @LukePilon Software Architect WordPress 4 Years as a User 2 Years Designing Software Community Involvement CEO at Mobiah AC/DC, Lolcats, and the 80s Movies Mobiah, Inc Services, Software, Data Acquisition and Loyalty GPL Software Producers of GeoPosty 3 Plugins in the .ORG Repository
  • 6. Content for Today Orientation – What is a LBS Logic – When to leverage LBS Methods – Access User Location Basic Delivery – How to Deliver a Simple LBS Loop
  • 7. What the what Location-Based Services refers to a broad range of services that are based on (or enhanced by) information about the physical location of a user and/or device. $10 billion in revenue by 2016* http://www.businesswire.com/news/home/20110609006492/en/Strategy-Analytics-Cellphone-Privacy-Concerns-Short-Term-Barrier
  • 8. What is a LBS? They are a LBS and you are a LBS Everyone’s a LBS, S, S, S….
  • 9. Location Based Services The time and place to use them.
  • 10. Location is Important What level of location do you actually need before your user starts to see value? Continent Nation State City Block
  • 11. Use Cases Ad Targeting Digital Rights Management Localizing Content Fraud Prevention
  • 12. Use Cases and You Providing Specific Deals, Moving Inventory Protecting Your Content Rights / Restrictions Enriching the User’s Experience Blocking Unauthorized Users
  • 13. Food For Thought on LBS 20% of all Google Searches Performed on a Desktop Involve Location 40% of all Google Searches Performed on a Mobile Devices Involve Location
  • 16. IP Geolocation You have an IP Address & we know geographically where that is.
  • 17. IP GEO Properties Always On Static in Nature No Permission 25-50 Mile Localization
  • 18. IP GEO LIBRARIESHow it gets done Agreements with ISPs AppSourcing the Crowd Mad Scientists with Mad Bots Wifi Libraries
  • 19. IP Geo Libraries Service Providers IP2Location MaxMind Quova, a Neustar Service Libraries in General 4B IP Addresses ~ 20% Actively Changing Accessible via DB, API
  • 20. Plugins that do IP Geo GeoPosty 4,084 Downloads – 4.25 Stars Quova IP Technology IP2Location Tags – 468 Downloads – 5 Stars IP2Location IP Technology WP Geolocation– 1,120 Downloads – 2.75 Stars MaxMind IP Technology
  • 21. Plugin Features Shortcodes Preconfigured Widgets Redirection 3rd Party LBS Integrations
  • 22. Obligatory CODE SLIDE <?php echo do_shortcode('[geocity]');  ?> [geolongitude] and [geolatitude]
  • 23. HTML5 Geolocation Permission based access to users’ location.
  • 24. HTML5 Background A collection of HTML standards being brought into adoption. Not something that’s going to show up all at once, not even on your birthday. #sorry Many features are already in adoption with current browsers.
  • 25. HMTL5 Geolocation A singular feature of the HTML5 Standard Off By Default Can be coded as dynamic Permission Based, Error handling can be difficult ~ 12 Meter Localization
  • 26. HTML5 Geolocation APIHow it Gets Done Cell Tower Triangulation Device GPS IP Geo Libraries
  • 27. HTML5 Geolocation API IE – 9.0+ Firefox – 3.5+ Safari – 5.0+ Chrome – 5.0+ Opera – 10.6 iPhone – 3.0+ Android – 2.0+ http://diveintohtml5.org/geolocation.html
  • 31. A Safe AssumptionBefore the Opt-In 1+ out of 2 Users Can Currently Support HTML5 Geolocation
  • 32. Google Analytics Will Set You Free
  • 34. Obligatory CODE SLIDE function get_location() { navigator.geolocation.getCurrentPosition(show_map); } // Callback function once location has been granted function show_map(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; // let's show a map or do something interesting! }
  • 35. Stand and Deliver You, or your client, as an LBS
  • 36. Best Practices Location, Location, Location with Balance, Balance, Balance Give the User A Logical Exit Don’t Be Evil, Get Consent, Allow Record Removal Privacy Policy FTW
  • 37. Never, Never Never Ever Hello [geocity]! Welcome to my site! #FAIL #FAIL #FAIL #FAIL
  • 38. Super Simple LBSing. Step 1: Put Your Content to City Categories Step 2: Load The User’s Location Into Shortcodes Step 3: Get Loopy
  • 39. The Basic Geo Loop <?php$city = do_shortcode('[geocity]');$args = array('category_name' => $city);$myCityQuery = new WP_Query($args);if ($myCityQuery->have_posts()): while ($myCityQuery->have_posts()): $myCityQuery->the_post();//post stuffendwhile; endif; ?>
  • 41. CODE – Useful Functions // http://snipplr.com/view/2531/calculate-the-distance-between-two-coordinates-latitude-longitude/ function getGeoDistance($lat1, $lng1, $lat2, $lng2, $miles = true) { $pi80 = M_PI / 180; $lat1 *= $pi80; $lng1 *= $pi80; $lat2 *= $pi80; $lng2 *= $pi80; $r = 6372.797; // mean radius of Earth in km $dlat = $lat2 - $lat1; $dlng = $lng2 - $lng1; $a = sin($dlat / 2) * sin($dlat / 2) + cos($lat1) * cos($lat2) * sin($dlng / 2) * sin($dlng / 2); $c = 2 * atan2(sqrt($a), sqrt(1 - $a)); $km = $r * $c; return ($miles ? ($km * 0.621371192) : $km); }
  • 42. CODE – Useful Functions // http://www.hashbangcode.com/blog/search-engine-spider-detection-php-258.html function geoSpiderDetect() { $agentArray = array("ArchitextSpider", "Googlebot", "TeomaAgent", "Zyborg", "Gulliver", "Architext spider", "FAST-WebCrawler", "Slurp", "Ask Jeeves", "ia_archiver", "Scooter", "Mercator", "crawler@fast", "Crawler", "InfoSeek Sidewinder", "almaden.ibm.com", "appie 1.1", "augurfind", "baiduspider", "bannana_bot", "bdcindexer", "docomo", "frooglebot", "geobot", "henrythemiragorobot", "sidewinder", "lachesis", "moget/1.0", "nationaldirectory-webspider", "naverrobot", "ncsa beta", "netresearchserver", "ng/1.0", "osis-project", "polybot", "pompos", "seventwentyfour", "steeler/1.3", "szukacz", "teoma", "turnitinbot", "vagabondo", "zao/0", "zyborg/1.0", "Lycos_Spider_(T-Rex)", "Lycos_Spider_Beta2(T-Rex)", "Fluffy the Spider", "Ultraseek", "MantraAgent","Moget", "T-H-U-N-D-E-R-S-T-O-N-E", "MuscatFerret", "VoilaBot", "Sleek Spider", "KIT_Fireball", "WISEnut", "WebCrawler", "asterias2.0", "suchtop-bot", "YahooSeeker", "ai_archiver", "Jetbot" );
  • 44. Parting Remarks Go do something excellent.
  • 45. Questions? Luke Pilon luke@mobiah.com @lukepilon