googlemaps / react-native-navigation-sdk

Apache License 2.0
25 stars 5 forks source link

How to get currentRouteSegmentEndPoint and currentRouteSegment #206

Open ziga-hvalec opened 3 months ago

ziga-hvalec commented 3 months ago

I'm trying to get currentRouteSegmentEndPoint and currentRouteSegment but can't find them anywhere. I expected the getCurrentRouteSegment to return this information. Where can i get currentRouteSegmentEndPoint and currentRouteSegment?

illuminati1911 commented 3 months ago

Hi @ziga-hvalec .

Do you mean getCurrentRouteSegment doesn't return that information? There should be destinationLatLng, destinationWaypoint and list of all the coordinates that form the segment: segmentLatLngList.

Are these null or missing from the data you get?

ziga-hvalec commented 3 months ago

to update currentRouteSegment on lmfs i need to provide currentRouteSegment as a string that looks something like that

Ahrb3AOkrBaBlCWVLiYCAKn7ILjhUfONywTywgrZ84oDoJJWpfgIo0iUhAIlu6UI3+sK8f8orGihPtbMAcLCAeEytgu6AuoGywJWoyWdDL61C+PFCPtCvJQipRCCUuoUnowI1ZwI5p8pre0KrY4I3c8IwoQjnYQjquAI9KgI/rcBiUn1vgHGhAGxAd0LlAPJA+wjvQz8A8MspA78PM8k1QSz8AGEwGCTlhmsthrT+Qevhw+ovQzYnAPDM6v6DLhK5GS3kwO8+eEBz8g4i4c5v36AmAOkCNwf20nPNfwO+Ai8D9s16I8H4OYd154Hk58SpJwB7KoDs8oE8EbtGY8DzgHz6Q3AiAbfhQbUkQHLEdIqxhOSQpcWurYB+bwFnu4E2eMEtbwBhuIT6ZIEnYkBgTDxwAHy5QbXJJHQAek13WzCijLhkwHWlwKZqwv5ScbGOtHSkwHiSpYb0hLCvQPRvAKYCcQrzfwBjBipAtAHxZIBposExJABtY8Eg6kBnLoBt5IEvJwE+7sBzCSwA8wyoDvvxwTIzAG/OeQMbMQauwuEY9+6A7ysA6uiA4zcAftoqGnHYvyCA8eCA/yWDP/kDNyvCZkG0320gA7z6Qn8iCfCH6P9JZQb+50DvDf7e4SPA5isA4PJBt8fkOsNj5MD8CnnpQaQtgHrwwSI7BDXeaetBJYhkg+tgwH+jhPVtQTt5gT2rRPZ0hD+uQHxqxKGrRftoxaqvQWBxxEitgafAYMQux2SBrQCuAfBXsJKhgPoDq0PoTKaL6kmqgrMCcwHjBabJ9cM7BvMYbsz9xibBuATkBGPB4QS4QWPB68DixXJQ5IR5QHuFz21AQsCxQfsrwKPjAKI7QKEugLYBIxauMwm34Yv+JQJ/+EL/7EC9N8tt8wk8MgkkokC54ACzB/vxQz3qQLU4w/fd5

where can i get this? or can i covert that string of coords to someting like above?

ArturoSalazarB16 commented 2 months ago

Hi @ziga-hvalec - just so we understand the use case, are you trying to integrate with NavSDK and Fleet Engine directly on your app? This data is something that is available today as part of DriverSDK (https://github.com/googlemaps/react-native-driver-sdk).

Though, the latest NavSDK version isn't compatible with DriverSDK at the moment, but it's something we should be fixing real soon.

ziga-hvalec commented 2 months ago

i know but we're not yet updating and we're looking for a different solution for now.

ziga-hvalec commented 2 weeks ago

Is driver sdk compatible with the latest version of navSdk 0.7.0?

jokerttu commented 1 week ago

@ziga-hvalec We are currently working with Driver plugin support for published navSdk package version 0.8.0