Skip to content

Commit

Permalink
[generator] Specified higway types for filtering roads.
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimandrianov authored and tatiana-yan committed Mar 12, 2021
1 parent c284e16 commit 39ec5f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ int main(int argc, char ** argv)
feature::CountriesFilesAffiliation mwmMatcher(GetPlatform().ResourcesDir(),
false /* haveBordersForWholeWorld */);

// These types are used in maps_generator (maps_generator/genrator/steps.py in filter_roads function).
std::vector<std::string> const highwayTypes{"motorway", "trunk", "primary", "secondary",
"tertiary"};

Expand Down
2 changes: 1 addition & 1 deletion tools/python/maps_generator/generator/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def filter_roads(
output=output,
error=error,
keep="",
keep_ways="highway=*",
keep_ways="highway=motorway =trunk =primary =secondary =tertiary",
)


Expand Down

0 comments on commit 39ec5f7

Please sign in to comment.