The list of vehicles should have a plural variable name: vehicle_typeS; see https://github.com/anyways-open/routing-profiles/issues/58

This commit is contained in:
Pieter Vander Vennet 2022-03-07 13:45:13 +01:00
parent 91afe119c4
commit 1408916314

View file

@ -51,7 +51,7 @@ namespace AspectedRouting.IO.itinero1
$"-- Itinero 1.0-profile, generated by AspectedRouting.", $"-- Itinero 1.0-profile, generated by AspectedRouting.",
$"name = \"{_profile.Name}\"", $"name = \"{_profile.Name}\"",
"normalize = false", "normalize = false",
"vehicle_type = {" + string.Join(", ", _profile.VehicleTyps.Select(s => "\"" + s + "\"")) + "}", "vehicle_types = {" + string.Join(", ", _profile.VehicleTyps.Select(s => "\"" + s + "\"")) + "}",
// meta_whitelist is defined in the profile file, these are tags that are included in the generated route, but are not relevant for determining weights // meta_whitelist is defined in the profile file, these are tags that are included in the generated route, but are not relevant for determining weights
"meta_whitelist = {\n" "meta_whitelist = {\n"
+ string.Join("\n , ", _profile.Metadata.Select(s => "\"" + s + "\"")) + string.Join("\n , ", _profile.Metadata.Select(s => "\"" + s + "\""))