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 SummaryConstructorsConstructorDescriptionPoint(CoordinateReferenceSystem coordinateReferenceSystem, Position coordinate) Construct an instance with the given coordinate and coordinate reference system.Construct an instance with the given coordinate.
- 
Method SummaryMethods inherited from class com.mongodb.client.model.geojson.GeometrygetCoordinateReferenceSystem, toJson
- 
Constructor Details- 
PointConstruct an instance with the given coordinate.- Parameters:
- coordinate- the non-null coordinate of the point
 
- 
PointConstruct an instance with the given coordinate and coordinate reference system.- Parameters:
- coordinateReferenceSystem- the coordinate reference system
- coordinate- the non-null coordinate of the point
 
 
- 
- 
Method Details- 
getTypeDescription copied from class:GeometryGets the GeoJSON object type.
- 
getCoordinatesGets the GeoJSON coordinates of this point.- Returns:
- the coordinates
 
- 
getPositionGets the position of this point.- Returns:
- the position
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-