Package com.mongodb.client.model.geojson
Class Point
java.lang.Object
com.mongodb.client.model.geojson.Geometry
com.mongodb.client.model.geojson.Point
A representation of a GeoJSON Point.
- Since:
 - 3.1
 
- 
Constructor Summary
ConstructorsConstructorDescriptionPoint(CoordinateReferenceSystem coordinateReferenceSystem, Position coordinate) Construct an instance with the given coordinate and coordinate reference system.Construct an instance with the given coordinate. - 
Method Summary
Methods inherited from class com.mongodb.client.model.geojson.Geometry
getCoordinateReferenceSystem, toJson 
- 
Constructor Details
- 
Point
Construct an instance with the given coordinate.- Parameters:
 coordinate- the non-null coordinate of the point
 - 
Point
Construct an instance with the given coordinate and coordinate reference system.- Parameters:
 coordinateReferenceSystem- the coordinate reference systemcoordinate- the non-null coordinate of the point
 
 - 
 - 
Method Details
- 
getType
Description copied from class:GeometryGets the GeoJSON object type. - 
getCoordinates
Gets the GeoJSON coordinates of this point.- Returns:
 - the coordinates
 
 - 
getPosition
Gets the position of this point.- Returns:
 - the position
 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 
 -