-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
DirectionsRoute.builder() issue #42
Comments
Your code does not look correct. You will need a lot more data in the RouteLeg, you need to build Steps, Maneuvers, Instructions, etc. I would recommend to check the content that Mapbox or OSRM provide and go from there. If you have a working solution for OSMDroid, a PR would be welcome so we can add support for different routing providers (it needs to integrate well with the current code though :)). |
Sure...if I can make it! I need to understand the minimum data needed to make navigation work and then add the extras. |
the information received by OSMDroid is much less than that received by MapBox. |
If this is something you would like to contribute, I think a PR would be welcome 👍 |
Add these dependencies in build.gradle:
declare as global:
then:
|
Try and let me know |
I'm using OSMDroid server to get routes.
Then, I convert the obtained OSMDroid route class in DirectionRoute class with the DirectionsRoute.builder():
Road road; // Route obtained from OSMDroid server
The issue came when I call:
navigation.startNavigation(route);
There is an issue in NavigationRouteProcessor.java class, because I obtain this error but the List of RouteLeg is never null and size is 1 (minimum).
The text was updated successfully, but these errors were encountered: