public class GeoLocation extends Object implements ICleanable
| Constructor and Description |
|---|
GeoLocation() |
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Cleans each GeoJson attached to the location.
|
GeoJson |
getBox()
Returns the spatial limits of a box.
|
String |
getPlace()
Returns the description of the geographic location.
|
GeoJson |
getPoint()
Returns a point location in space.
|
List<GeoJson> |
getPolygons()
Returns a list of drawn polygon areas, defined by sets of
points and lines connecting the points in closed chains.
|
boolean |
isValid()
Returns true if the GeoLocation has any geographical data.
|
void |
setBox(double westBoundLongitude,
double eastBoundLongitude,
double southBoundLatitude,
double northBoundLatitude)
Changes the spatial limits of a box, defining its shape.
|
void |
setPlace(String place)
Changes the description of the geographic location.
|
void |
setPoint(GeoJson point)
Changes the point location.
|
void |
setPolygons(List<GeoJson> polygons)
Changes the list of drawn polygon areas, defined by sets of
points and lines connecting the points in closed chains.
|
public String getPlace()
public void setPlace(String place)
place - a free text description of the locationpublic GeoJson getPoint()
public void setPoint(GeoJson point)
point - a point locationpublic List<GeoJson> getPolygons()
public void setPolygons(List<GeoJson> polygons)
polygons - a list of drawn polygon areaspublic GeoJson getBox()
public void setBox(double westBoundLongitude,
double eastBoundLongitude,
double southBoundLatitude,
double northBoundLatitude)
westBoundLongitude - western longitudinal dimension of the boxeastBoundLongitude - eastern longitudinal dimension of the boxsouthBoundLatitude - southern latitudinal dimension of the boxnorthBoundLatitude - northern latitudinal dimension of the boxpublic void clean()
clean in interface ICleanablepublic boolean isValid()
Copyright © 2017–2018. All rights reserved.