homeeondemand / react-native-mapbox-navigation

A navigation UI ready to drop into your React Native application
MIT License
153 stars 118 forks source link

Exposing the entirety of the "progress" and maneuver object #81

Open Raamzeez opened 2 years ago

Raamzeez commented 2 years ago

Hi! I want to integrate this package with my react native application so that I can get real-time navigation. However, one of my biggest issues is that I need to get a lot of the data that is provided by the appropriate Mapbox APIs, including information that is contained in the "progress" object with the type of RouteProgress. The only data that is exposed is the distance traveled, the distance remaining, the fraction traveled, and the duration remaining. Unfortunately, this does not include the many other properties that are part of the RouteProgress object. Additionally, I also need data regarding the current maneuver that the operator should do, which is contained in the MapboxManeuverView UI component, but I can't find that within the code. If this could be done this would be a great benefit for me, and I am sure for many others since being able to get the data from the appropriate API will make the package much more versatile. I would try to contribute, but I am not familiar with contributing and am not well versed in Swift. I have attached a screenshot showing where the progress object is located, but I can't find the MapboxManeuverView, but I am hoping I can get the information from this as well. Thanks!

Screen Shot 2022-04-03 at 2 24 19 PM