In the function IsVehicleAllowed located in src\Itinero\Osm\Vehicles\MotorVehicles.cs I think there is a duplicate code (see below), may I wrong?
/// <summary>
/// Returns true if the vehicle is allowed on the way represented by these tags
/// </summary>
protected override bool IsVehicleAllowed(IAttributeCollection tags, string highwayType)
{
if (!tags.InterpretAccessValues(VehicleTypes, "access"))
{
return false;
}
if (!tags.InterpretAccessValues(VehicleTypes, "access"))
{
return false;
}
return AccessibleTags.ContainsKey(highwayType);
}
In the function IsVehicleAllowed located in src\Itinero\Osm\Vehicles\MotorVehicles.cs I think there is a duplicate code (see below), may I wrong?