@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, toBsonDocument
public 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 AbstractGeoJsonObject
public 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.