Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Location API and programming                                                      practicesIntroduction toprogramming usin...
What’s on the agenda today ?Introduction   Challenges              Best   to LBS                            practices     ...
Introduction to LBSThings to keep in mind before you create your world changing LBS
What is a location based service ?        ―A location-based service (LBS) is an    information or entertainment service, w...
Is it the hot tech of today ??• Not really !!! But there is a lot of potential• Gartner (2009) identifies the LBS will be ...
Some interesting stats        • people where 63%      aware of LBS        • report having 52%      used LBS         • 32% ...
Why is LBS so important                               Need for                               services                     ...
LBS Growth Factors                                Success of new             Growth of mobile                             ...
Challenges in deployingLBS          Things that are slowing it down
LBS : Aspects to work on                     Control                     (Legal)          Security                Trust   ...
Obstacles in LBS adoption    Privacy concerns.       Security concerns         Two-thirds of advertising companies aren’t ...
Technical Challenges•   Maintaining battery performance•   Varying accuracy•   Multiple providers ( GPS , WIFI etc)•   Con...
Best PracticesThings that you might wanna try in your application
Decide on your app location requirements upfront     How often do you need updates?       What happens when GPS and WIFI a...
Best practices• Specify a minimum update frequency.• Specify a minimum update distance.int freq = 10 * 60 * 1000 ; // 10 m...
Best practices• Use criteria to select a location provider• Specify the criteria   – Allowable power drain   – Required ac...
Best practicesCriteria criteria = new Criteria() ;criteria.setAccuracy(Criteria.ACCURACY_FINE);criteria.setAltitudeRequire...
Some best practices• Reduce the latency for getting your first  location fix by retrieving the last known  location from t...
Best practices• Implement a back off pattern  – Use multiple location providers     • Fine and course     • High and low f...
Best practices• Network location provider — tend to return results  faster than the more accurate options• Requesting loca...
Q&A
Location Based Services - An Overview
Upcoming SlideShare
Loading in …5
×

Location Based Services - An Overview

9,361 views

Published on

Published in: Technology, Business
  • Be the first to comment

Location Based Services - An Overview

  1. 1. Location API and programming practicesIntroduction toprogramming using Location API Amrit Sanjeev Bangalore Android User Group
  2. 2. What’s on the agenda today ?Introduction Challenges Best to LBS practices Let go and find where our users are 
  3. 3. Introduction to LBSThings to keep in mind before you create your world changing LBS
  4. 4. What is a location based service ? ―A location-based service (LBS) is an information or entertainment service, which is accessible with mobile devices through the mobile network and which uses information on the geographical position of the mobile device.‖
  5. 5. Is it the hot tech of today ??• Not really !!! But there is a lot of potential• Gartner (2009) identifies the LBS will be the #2 mobile application for 2012 because of its perceived high user value and its influence on user loyalty.
  6. 6. Some interesting stats • people where 63% aware of LBS • report having 52% used LBS • 32% use it every month • 10% use it every day • thought it was 94% valuable • 18% tell others their location • Expose location without consent 84% • Identity theft 84% • expressed 52% concerns • Loss of privacy 84%
  7. 7. Why is LBS so important Need for services on the move . Better Availability data of networks hardware LBS popularity GPS Better hardware batteries in more devices
  8. 8. LBS Growth Factors Success of new Growth of mobile digital business advertising. models. Increasing Increased speeds and smartphone broader adoption. coverage of Growth mobile networks. of LBS
  9. 9. Challenges in deployingLBS Things that are slowing it down
  10. 10. LBS : Aspects to work on Control (Legal) Security Trust (Technolo gical) LBS (Social) Privacy (Ethical)
  11. 11. Obstacles in LBS adoption Privacy concerns. Security concerns Two-thirds of advertising companies aren’t using LBS (2011 data). General awareness is only around 30%. Device user experience
  12. 12. Technical Challenges• Maintaining battery performance• Varying accuracy• Multiple providers ( GPS , WIFI etc)• Continuous change• Responsiveness
  13. 13. Best PracticesThings that you might wanna try in your application
  14. 14. Decide on your app location requirements upfront How often do you need updates? What happens when GPS and WIFI are disabled ? How accurate do u need to be ? What is the impact on battery life ? What happens when location jumps ?
  15. 15. Best practices• Specify a minimum update frequency.• Specify a minimum update distance.int freq = 10 * 60 * 1000 ; // 10 minutesint distance = 500 ; // 500 meterslocationManager.requestLocationUpdates(provider, freq, distance, 1)
  16. 16. Best practices• Use criteria to select a location provider• Specify the criteria – Allowable power drain – Required accuracy – Need for additional parameters like altitude, bearing , speed etc• Find the best location provider based on your criteria• Relax requirement till you find a provider• Can limit to only active providers• Can use all matching providers
  17. 17. Best practicesCriteria criteria = new Criteria() ;criteria.setAccuracy(Criteria.ACCURACY_FINE);criteria.setAltitudeRequired(false);criteria.setBearingRequired(false);criteria.setCostAllowed(true);criteria.setPowerRequirement(Criteria.POWER_LOW);String provider = locationManager.getBestProvider(criteria, true);
  18. 18. Some best practices• Reduce the latency for getting your first location fix by retrieving the last known location from the Location Manager each time the app is resumed.• If there is one or more locations available from within the allowed latency, return the most accurate one. If not, we simply return the most recent result.
  19. 19. Best practices• Implement a back off pattern – Use multiple location providers • Fine and course • High and low frequency /distance• Remove listeners as accuracy improves• Monitor battery and reduce functionality to save power . – Change frequency of updates – Disable location change receivers
  20. 20. Best practices• Network location provider — tend to return results faster than the more accurate options• Requesting location updates (particularly using the GPS) while your app isn’t in the foreground is poor practice, as it can significantly impact battery life.• Register Passive Location Changed Receiver that allows you to receive background updates even when the application has been killed by the system to free resources.
  21. 21. Q&A

×