Skip to content
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

How can I remove the /routed-RoadType.car on the base generatePath #13

Open
gaiousantonio0909 opened this issue Apr 1, 2023 · 2 comments

Comments

@gaiousantonio0909
Copy link

I have my own OSRM backend Im using flutter to implement it using my own OSRM run on docker

@liodali
Copy link
Owner

liodali commented Apr 1, 2023

can you provide us format of you url at least that will help us to provide generic api

@liodali
Copy link
Owner

liodali commented Apr 1, 2023

you create your custom OSRMManager like this

class YourOwnOSRMManager extends OSRMManager {

  @override
  String generatePath(String server, String waypoints, {Profile profile = Profile.route, RoadType roadType = RoadType.car, bool steps = true, Overview overview = Overview.full, Geometries geometries = Geometries.polyline}) {
    // Custom logic
    return "your new URL";
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants