MKergall / osmbonuspack

A third-party library of (very) useful additional objects for osmdroid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Navigation for geoJson loaded path

vkanarola opened this issue · comments

Hi , I am integrating this library for one of my project. I have geoJson file from which I have loaded path between source and destination . Now i would like to show navigation between path with details . I am not able to find a way to do the same .Can any one please help ?

commented

Request for help: on StackOverflow please.

Could you please explain some details here if you have idea about it .

commented

Your need, from your comment in #90 :

"I am using open route services direction api to get direction between 2 points . I am getting data in geoJson formate which include waypoints and all other details ,. I am successfully able to show route on osmdroid map . Now I want navigation on that route with details (like turn left ) .How Can I achieve this?

Here is geoJson data which I have .
https://docs.google.com/document/d/15nBB8wbs1UuFE0UJHL74WuTKGlLuRPqpmLu-VrF7YNQ/edit?usp=sharing"

commented

Recommended solution:
Look how OsmBonusPack RoadManagers are written - particularly OSRMRouteManager.
And then write your own OpenRouteServiceRoadManager.

An alternative if this is too complex for you: don't use Openrouteservice, use OSRM or GraphHopper services instead, as everything is ready to use in OsmBonusPack.

Have you managed anything like this before?

commented

Of course: OBP contains implementation of access to four route services.
You should read this first: https://github.com/MKergall/osmbonuspack/wiki/WhichRoutingService
Then start here: https://github.com/MKergall/osmbonuspack/wiki/Tutorial_1

Yes I have gone through all of this . My question is this route managers will create their own paths and in my case I have all geo coordinates through which I have to create route.

commented

You asked a question: "I am successfully able to show route on osmdroid map . Now I want navigation on that route with details (like turn left ) .How Can I achieve this?".
I gave you the answer.