liodali/OSM-Routing-Client-Dart

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

gaiousantonio0909 opened this issue · 2 comments

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

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

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";
  }
}