googlemaps / react-native-navigation-sdk

Apache License 2.0
25 stars 5 forks source link

onLocationChanged returns bearing as -1 #181

Closed ziga-hvalec closed 3 months ago

ziga-hvalec commented 4 months ago

When using onLocationChanged on ios it returns bearing as -1 I'm also not sure if altitude is correct. as well as vertical accuracy is -1.

using beta 0.3.4

accuracy: 1
altitude: 0
bearing: 270.5581424075185
lat: 46.56206723487876
lng: 15.652107819914816
speed: 5.459395168506614
time: 1718881542123
verticalAccuracy: -1
jokerttu commented 4 months ago

Thank you for reporting this issue.

Currently, the Navigation SDK for iOS returns -1 when values are not available. This behavior needs to be modified to return null for these values instead, to align with the Android implementation.

ziga-hvalec commented 4 months ago

i assumed that yes. But why do i not get bearing? do i need to enable something?

illuminati1911 commented 3 months ago

i assumed that yes. But why do i not get bearing? do i need to enable something?

According to Apple docs, not all devices support bearing.

We are closing this issue because there’s a new feature in the next release to address this issue. In case of new issues, please open a new Github Issue.

illuminati1911 commented 3 months ago

@ziga-hvalec We have now new release available 1.0.0-beta. It should fix this issue.

Edit: The release number has been changed to 0.4.0-beta.