Download - Lessons Learned in Lookout Location Services
![Page 1: Lessons Learned in Lookout Location Services](https://reader036.vdocuments.us/reader036/viewer/2022081813/54b719aa4a7959af718b468d/html5/thumbnails/1.jpg)
LESSONS LEARNED IN LOOKOUT
LOCATION SERVICES Jeff Watts, Lookout, Inc.
![Page 2: Lessons Learned in Lookout Location Services](https://reader036.vdocuments.us/reader036/viewer/2022081813/54b719aa4a7959af718b468d/html5/thumbnails/2.jpg)
Locations @ Lookout
• Collect locations in several scenarios: • User-initiated • Signal Flare • Lock Cam • More to come…
![Page 3: Lessons Learned in Lookout Location Services](https://reader036.vdocuments.us/reader036/viewer/2022081813/54b719aa4a7959af718b468d/html5/thumbnails/3.jpg)
Lots of ‘em
• Millions of location requests per day, and
growing
• Most locate commands result in multiple
locations being obtained and sent from the
device
• Devices have multiple location
providers (cell, wifi, GPS, etc.), with
varying accuracies and time to get a fix
![Page 4: Lessons Learned in Lookout Location Services](https://reader036.vdocuments.us/reader036/viewer/2022081813/54b719aa4a7959af718b468d/html5/thumbnails/4.jpg)
So what have we learned?
![Page 5: Lessons Learned in Lookout Location Services](https://reader036.vdocuments.us/reader036/viewer/2022081813/54b719aa4a7959af718b468d/html5/thumbnails/5.jpg)
1. Speed counts
• Faster fixes = happier users
• Get the first fix you can reasonably use,
refine later
• Passive location provider is useful for this
• Network location provider is faster than
GPS, but with lower accuracy
![Page 6: Lessons Learned in Lookout Location Services](https://reader036.vdocuments.us/reader036/viewer/2022081813/54b719aa4a7959af718b468d/html5/thumbnails/6.jpg)
2. Know your accuracy threshold
• Get there and stop listening
![Page 7: Lessons Learned in Lookout Location Services](https://reader036.vdocuments.us/reader036/viewer/2022081813/54b719aa4a7959af718b468d/html5/thumbnails/7.jpg)
3. Raw cell tower info is rarely useful
• Caveat: the previous point
• Very low accuracy (~1 mile)
• You’ll need another service to translate
CellID info to latitude and longitude
• But fast! (see point 1)
• Easy on the battery, too
![Page 8: Lessons Learned in Lookout Location Services](https://reader036.vdocuments.us/reader036/viewer/2022081813/54b719aa4a7959af718b468d/html5/thumbnails/8.jpg)
4. Mind the battery
• Don’t use GPS if you don’t have to
• Passive location provider is nice, if you can
get what you need from it
• Network providers (cell, wifi) are easier on
the battery than GPS
• Can get pretty good accuracy with assisted
GPS, using network provider (requires GPS
chip on device, though)
![Page 9: Lessons Learned in Lookout Location Services](https://reader036.vdocuments.us/reader036/viewer/2022081813/54b719aa4a7959af718b468d/html5/thumbnails/9.jpg)
5. Better APIs will make your life easier
• If device has Google Play services, you may
be able to use fused location provider on
Android, which hides most of this
complexity from you
• Similar API for iOS, available on all devices
![Page 10: Lessons Learned in Lookout Location Services](https://reader036.vdocuments.us/reader036/viewer/2022081813/54b719aa4a7959af718b468d/html5/thumbnails/10.jpg)
6. Be nice to your DB
• Keep writes fast, index judiciously
according to your app needs
• Multiple locations sent from a device for
each location request
• Probably don’t need to keep all of them
• Figure out how to group related
locations