Fix call to std::min
This commit is contained in:
parent
15359befdc
commit
8bb183bc8c
@ -23,7 +23,7 @@ static double search_radius_for_gps_radius(double gps_radius) {
|
|||||||
// For a given GPS radius, determine the radius we need to search for candidate street segments
|
// For a given GPS radius, determine the radius we need to search for candidate street segments
|
||||||
// to have a 99.9% chance of finding the correct segment.
|
// to have a 99.9% chance of finding the correct segment.
|
||||||
// For more detail, see the analysis at https://github.com/Project-OSRM/osrm-backend/pull/3184
|
// For more detail, see the analysis at https://github.com/Project-OSRM/osrm-backend/pull/3184
|
||||||
return std::min(gps_radius * 3.5 + 45, 200);
|
return std::min(gps_radius * 3.5 + 45, 200.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace osrm
|
namespace osrm
|
||||||
|
Loading…
Reference in New Issue
Block a user