findClosestDestinationWaypointInList

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.