toRoute method
Implementation
Route toRoute({
ValhallaUnit unit = ValhallaUnit.km,
int accuracyExponent = 5,
}) {
final alters = alternates?.map((e) => e.toRoute()).toList();
final road = trip.toRoute(
unit: unit,
accuracyExponent: accuracyExponent,
);
return road.copyWith(alternativesRoads: alters);
}