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

Add heading to UserLocation and expose UserLocation type #522

Merged
merged 2 commits into from Feb 12, 2021

Conversation

n8han
Copy link
Collaborator

@n8han n8han commented Feb 10, 2021

While UserLocation includes a "bearing" (also called "course")
indicating the direction of travel, it does not expose the heading of
the device. Since this information is already provided in the didUpdate userLocation delegate method, we can add it to the UserLocation
payload for a trivial cost at runtime.

Also exposes the existing UserLocation type so that client code may
refer to it.

Objects of this type are returned by framework methods, but client code
and not refer to the type currently.
While UserLocation includes a "bearing" (also called "course")
indicating the direction of travel, it does not expose the heading of
the device. Since this information is already provided in the `didUpdate
userLocation` delegate method, we can add it to the `UserLocation`
payload for a trivial cost at runtime.
@n8han n8han changed the title Show UserLocation type Add heading to UserLocation and expose UserLocation type Feb 11, 2021
@n8han
Copy link
Collaborator Author

n8han commented Feb 11, 2021

I don't think the web build failure is related to changes in this branch.

@tobrun
Copy link
Collaborator

tobrun commented Feb 12, 2021

Android feature request in #528

@tobrun tobrun merged commit d5a5473 into master Feb 12, 2021
@tobrun tobrun deleted the UserPositionType branch February 12, 2021 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants