@Experimental public class GeoPoint extends AbstractGeoJsonObject
| Constructor and Description |
|---|
GeoPoint(double longitude,
double latitude)
Instantiates a new Point.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static GeoPoint |
fromDocument(org.bson.Document document) |
double |
getLatitude() |
double |
getLongitude() |
int |
hashCode() |
protected org.bson.BsonArray |
toCoordinates() |
String |
toString() |
checkType, toBsonDocumentpublic GeoPoint(double longitude,
double latitude)
longitude - the longitude of the pointlatitude - the latitude of the pointpublic double getLongitude()
public double getLatitude()
protected org.bson.BsonArray toCoordinates()
toCoordinates in class AbstractGeoJsonObjectpublic static GeoPoint fromDocument(org.bson.Document document)
Copyright © 2010-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.