Include distance from input to snapped for all waypoints, not just on the nearest service.

This commit is contained in:
Daniel Patterson
2018-11-02 14:52:02 -07:00
parent 973837207b
commit 4dde9c7bbe
8 changed files with 41 additions and 16 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ double perpendicularDistance(const Coordinate segment_source,
web_mercator::fromWGS84(query_location));
nearest_location = web_mercator::toWGS84(projected_nearest);
const double approximate_distance = greatCircleDistance(query_location, nearest_location);
const double approximate_distance = fccApproximateDistance(query_location, nearest_location);
BOOST_ASSERT(0.0 <= approximate_distance);
return approximate_distance;
}