contains Location
Computes whether the given point lies inside the specified polygon. The polygon is always considered closed, regardless of whether the last point equals the first or not. Inside is defined as not containing the South Pole -- the South Pole is always outside. The polygon is formed of great circle segments if geodesic is true, and of rhumb (loxodromic) segments otherwise.
Return
true
if the point is inside the polygon, false
otherwise.
Parameters
point
The point to check.
polygon
The polygon to check against.
geodesic
Whether to treat the polygon segments as geodesic or rhumb lines.
fun containsLocation(latitude: Double, longitude: Double, polygon: List<LatLng>, geodesic: Boolean): Boolean
Overload of {@link #containsLocation(LatLng, List, boolean)} that takes latitude and longitude as separate arguments.