We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ab18a commit da7d408Copy full SHA for da7d408
src/osm_elements/Way.cpp
@@ -283,7 +283,7 @@ void
283
Way::max_speed(const Tag &tag) {
284
auto key = tag.key();
285
auto value = tag.value();
286
- auto get_val = [&](double a) {return static_cast<int64_t>(a) ? a : 50.0;};
+ auto get_val = [&](double a) {return (a >= 1.0) ? a : 50.0;};
287
if (key == "maxspeed:forward") {
288
m_maxspeed_forward = get_val(get_kph(value));
289
return;
0 commit comments