Closed nsander closed 5 years ago
var profile = routerDb.GetSupportedVehicle("nvdb.car").Fastest();
That line is not correct, use the name of the profile you defined in lua:
https://github.com/itinero/routing/blob/develop/src/Itinero/Osm/Vehicles/car.lua#L2
And yes for now only profiles with the time metric are supported:
I am trying to calculate a tree from a point, and a maximum allowed distance from that point, in metres. The way that I am doing this is;
This code works fine, and it seems as though the
maxDistance
in this case is the allowed time away from the point, I however want to limit this on distance in metres. If I change the profile to instead usewhich has a profile metric of 'distance' rather than 'time'. I get the following error;
Is it possible to use
CalculateTree
and limit the scope using distance rather than time?