Skip to content

Commit

Permalink
don't classify secondary roads as residential
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed May 15, 2024
1 parent b526bf2 commit e01f51a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public double predict(Object2DoubleMap<String> features, Object2ObjectMap<String
}

// Capacity for city roads
if (speed >= 40 || lanes >= 2) {
if (speed >= 40 || lanes >= 2 || features.getDouble("is_secondary_or_higher") == 1) {
return switch (lanes) {
case 1 -> 1139.0625;
case 2 -> 2263.438914027149 / 2;
Expand Down

0 comments on commit e01f51a

Please sign in to comment.