Package com.thingworx.common.utils
Class LocationUtilities
- java.lang.Object
-
- com.thingworx.common.utils.LocationUtilities
-
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class LocationUtilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LocationUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
calculateBearing(Location loc1, Location loc2)
static java.util.ArrayList<Location>
calculateCircularGeoFence(Location center, double radius, java.lang.String units, int numberOfPoints)
static java.lang.String
calculateDirection(Location loc1, Location loc2)
static double
calculateDistance(Location loc1, Location loc2, java.lang.String units)
static boolean
isInRegion(java.util.List<Location> region, Location location)
static boolean
isLocationWithinRegion(Location regionNE, Location regionSW, Location location)
static boolean
within(Location location, Location center, double distance, java.lang.String units)
-
-
-
Method Detail
-
within
@ThingworxExtensionApiMethod(since={6,6}) public static boolean within(Location location, Location center, double distance, java.lang.String units)
-
isLocationWithinRegion
@ThingworxExtensionApiMethod(since={6,6}) public static boolean isLocationWithinRegion(Location regionNE, Location regionSW, Location location)
-
calculateBearing
@ThingworxExtensionApiMethod(since={6,6}) public static double calculateBearing(Location loc1, Location loc2)
-
calculateDirection
@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String calculateDirection(Location loc1, Location loc2)
-
calculateDistance
@ThingworxExtensionApiMethod(since={6,6}) public static double calculateDistance(Location loc1, Location loc2, java.lang.String units)
-
isInRegion
@ThingworxExtensionApiMethod(since={6,6}) public static boolean isInRegion(java.util.List<Location> region, Location location)
-
calculateCircularGeoFence
@ThingworxExtensionApiMethod(since={6,6}) public static java.util.ArrayList<Location> calculateCircularGeoFence(Location center, double radius, java.lang.String units, int numberOfPoints)
-
-