Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Expose Location.hasBearingAccuracy() from Android platform #1525

Open
2 of 7 tasks
JaseElder opened this issue Jun 6, 2024 · 1 comment
Open
2 of 7 tasks
Labels
platform: android Issue is related to the Android platform. type: enhancement New feature or request

Comments

@JaseElder
Copy link

JaseElder commented Jun 6, 2024

Is there already an issue requesting this feature?

Please select affected platform(s)

  • Android
  • iOS
  • Linux
  • macOS
  • Web
  • Windows

Use case

It would be nice to have the Android Location.hasBearingAccuracy() call exposed to Flutter, as we were filtering out inaccurate heading readings using Position.headingAccuracy, but on some devices this always = 0.0 if Location.hasBearingAccuracy() returns false, so on those devices, we're throwing away all readings.

Proposal

An extra field in geolocator_platform_interface-4.2.2/lib/src/models/position.dart to flag whether the device has bearing/heading accuracy available.

Specific requirements or considerations

No response

Additional information or context

No response

@TimHoogstrate
Copy link
Contributor

Dear @JaseElder,

I'll label this as an enhancement, however, we will encourage you to propose a PR with the requested changes.

Kind regards,

@TimHoogstrate TimHoogstrate added type: enhancement New feature or request platform: android Issue is related to the Android platform. labels Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: android Issue is related to the Android platform. type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants