find Closest Destination Waypoint In List
open fun findClosestDestinationWaypointInList(location: LatLng, waypoints: List<Waypoint>): Waypoint
Finds the closest waypoint in a given list for the given location, only if it is a destination type.
Return
the closest destination waypoint, or null if none exist
Parameters
location
The location to use when comparing.
waypoints
The list of possible waypoints.