diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-18 22:29:36 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-18 22:29:36 -0800 |
commit | 6ea7e5229f8a9269cbcee639a0bd6ede3c7ceb88 (patch) | |
tree | aa7c9f5e69126fd590bd1bec4ea7c98618c24a61 /src/main/java/org/traccar/geofence/GeofenceGeometry.java | |
parent | da06eb0d1f8732da2b7f1976bb781b24568f6765 (diff) | |
download | trackermap-server-6ea7e5229f8a9269cbcee639a0bd6ede3c7ceb88.tar.gz trackermap-server-6ea7e5229f8a9269cbcee639a0bd6ede3c7ceb88.tar.bz2 trackermap-server-6ea7e5229f8a9269cbcee639a0bd6ede3c7ceb88.zip |
Add geofence area calculation
Diffstat (limited to 'src/main/java/org/traccar/geofence/GeofenceGeometry.java')
-rw-r--r-- | src/main/java/org/traccar/geofence/GeofenceGeometry.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/geofence/GeofenceGeometry.java b/src/main/java/org/traccar/geofence/GeofenceGeometry.java index 857ba3414..2c45c22af 100644 --- a/src/main/java/org/traccar/geofence/GeofenceGeometry.java +++ b/src/main/java/org/traccar/geofence/GeofenceGeometry.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 Anton Tananaev (anton@traccar.org) + * Copyright 2016 - 2020 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,6 +21,8 @@ public abstract class GeofenceGeometry { public abstract boolean containsPoint(double latitude, double longitude); + public abstract double calculateArea(); + public abstract String toWkt(); public abstract void fromWkt(String wkt) throws ParseException; |