Anybody here who has tried integrating ORS api to flutter? I am using this package open_route_service, but I can only manage to get the route from Point A to Point B. But what if I also want to pass on the avoid_polygons? How can I do it? There are no sample codes for it. Just this one, and I am good to go, on how to use this API. This is my initial code that gets the routing data:
final List<ORSCoordinate> routeCoordinates =
await openrouteservice.directionsMultiRouteCoordsPost(
coordinates: [
ORSCoordinate(
latitude: position.latitude, longitude: position.longitude),
ORSCoordinate(
latitude: lat,
longitude: lon,
),
],
profileOverride: profileOverride,
);