Class Util


  • public final class Util
    extends java.lang.Object
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • getBoundingRectangle

        public static MapRectangle getBoundingRectangle​(MapCoordinates[] points)
        Returns the bounding rectangle for the specified set of points.
        Parameters:
        points - The points.
        Returns:
        The bounding rectangle.
      • getDistanceBetween

        public static double getDistanceBetween​(double lon0,
                                                double lat0,
                                                double lon1,
                                                double lat1)
        Returns distance between coordinates
        Returns:
        distance in meters
      • isPointWithinPolygon

        public static boolean isPointWithinPolygon​(MapCoordinates coord,
                                                   java.util.List<MapCoordinates> polygon)
        Check the point is inside the polygon
      • isPointOnRoute

        public static boolean isPointOnRoute​(MapCoordinates coord,
                                             java.util.List<MapCoordinates> route,
                                             double accuracy)
        Check if a point is on or near a polyline, with specified accuracy in meters.