@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class LocationUtilities extends java.lang.Object
Constructor and Description |
---|
LocationUtilities() |
Modifier and Type | Method and 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) |
@ThingworxExtensionApiMethod(since={6,6}) public static boolean within(Location location, Location center, double distance, java.lang.String units)
@ThingworxExtensionApiMethod(since={6,6}) public static boolean isLocationWithinRegion(Location regionNE, Location regionSW, Location location)
@ThingworxExtensionApiMethod(since={6,6}) public static double calculateBearing(Location loc1, Location loc2)
@ThingworxExtensionApiMethod(since={6,6}) public static java.lang.String calculateDirection(Location loc1, Location loc2)
@ThingworxExtensionApiMethod(since={6,6}) public static double calculateDistance(Location loc1, Location loc2, java.lang.String units)
@ThingworxExtensionApiMethod(since={6,6}) public static boolean isInRegion(java.util.List<Location> region, Location location)
@ThingworxExtensionApiMethod(since={6,6}) public static java.util.ArrayList<Location> calculateCircularGeoFence(Location center, double radius, java.lang.String units, int numberOfPoints)