projectPointOntoGeodesicLine method
Project a point onto a geodesic line.
Given a geographic point point
, and start start
and end end
points defining a geodesic line, this function calculates and returns the projection (closest point) of the given point onto the geodesic line as a LatLng object.
Implementation
LatLng projectPointOntoGeodesicLine(LatLng point, LatLng start, LatLng end) {
return GeodesicLines.projectPointOntoGeodesicLine(point, start, end);
}