How can I remove the `/routed-RoadType.car` on the base generatePath
gaiousantonio0909 opened this issue · 2 comments
gaiousantonio0909 commented
I have my own OSRM backend Im using flutter to implement it using my own OSRM run on docker
liodali commented
can you provide us format of you url at least that will help us to provide generic api
liodali commented
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";
}
}