liodali / OSM-Routing-Client-Dart

flutter package for osrm client api and open source routing service
https://pub.dev/packages/routing_client_dart
MIT License
18 stars 12 forks source link

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

Open gaiousantonio0909 opened 1 year ago

gaiousantonio0909 commented 1 year ago

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

liodali commented 1 year ago

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

liodali commented 1 year ago

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