Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Add support for compass sensor #30

Closed
ljbade opened this issue Jul 30, 2015 · 3 comments
Closed

Add support for compass sensor #30

ljbade opened this issue Jul 30, 2015 · 3 comments
Assignees

Comments

@ljbade
Copy link

ljbade commented Jul 30, 2015

I think a nice improvement over Google Play would be to add the ability to get compass sensor direction.

Currently this requires a lot of boilerplate code and filtering code to get a usable direction from the Android sensor APIs.

It would be great if LOST implemented this into an easy to use API integrated with the existing location updates with a flag during initialisation to enable it.

Also some good heuristics about when to use GPS derived direction or compass direction would be needed. Perhaps using current speed or some other factors.

@ecgreb
Copy link
Collaborator

ecgreb commented Aug 6, 2015

I agree this would be a nice value added. We could use the compass direction to enhance location updates from other providers as well as add an additional interface to retrieve the raw sensor data.

@ecgreb
Copy link
Collaborator

ecgreb commented Aug 17, 2016

After taking a closer look at the documentation for Location we should not be using the magnetometer to influence bearings returned by the FusedLocationProviderApi.

"Bearing is the horizontal direction of travel of this device, and is not related to the device orientation."

https://developer.android.com/reference/android/location/Location.html#getBearing()

So then the question becomes do we want to include an add-on API of sorts with convenience methods to access sensor data?

Perhaps we will but this is outside the scope of v2.0 for which the primary goal is to improve coverage of methods currently available in play services.

@ecgreb ecgreb modified the milestone: 2.0 Aug 17, 2016
@ecgreb ecgreb removed this from the 2.0 milestone Aug 17, 2016
@sarahsnow1
Copy link
Contributor

Closing due to inactivity

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants