Cleanup
This commit is contained in:
@ -131,10 +131,11 @@ namespace Pathfinding
|
||||
}
|
||||
}
|
||||
|
||||
public double GetPriorityForVehicle(SpeedType speedType, OsmEdge edge, Region region)
|
||||
public double GetPriorityForVehicle(SpeedType speedType, OsmEdge edge, OsmNode node)
|
||||
{
|
||||
if (speedType == SpeedType.any)
|
||||
return 1;
|
||||
Region region = GetRegion(node.coordinates)!;
|
||||
WayType? wayType = (WayType?)region.tagManager.GetTag(edge.wayId, Tag.TagType.highway);
|
||||
if(wayType is null)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user