Package com.azure.core.models
Class GeoPoint
- java.lang.Object
-
- com.azure.core.models.GeoObject
-
- com.azure.core.models.GeoPoint
-
public final class GeoPoint extends GeoObject
Represents a geometric point.
-
-
Constructor Summary
Constructors Constructor Description GeoPoint(double longitude, double latitude)
Constructs aGeoPoint
.GeoPoint(double longitude, double latitude, Double altitude)
Constructs aGeoPoint
.GeoPoint(GeoPosition position)
Constructs a geometric point.GeoPoint(GeoPosition position, GeoBoundingBox boundingBox, Map<String,Object> customProperties)
Constructs a geometric point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
GeoPosition
getCoordinates()
Thegeometric position
of the point.GeoObjectType
getType()
Gets the GeoJSON type for this object.int
hashCode()
-
Methods inherited from class com.azure.core.models.GeoObject
getBoundingBox, getCustomProperties
-
-
-
-
Constructor Detail
-
GeoPoint
public GeoPoint(double longitude, double latitude)
Constructs aGeoPoint
.- Parameters:
longitude
- The longitudinal position of the point.latitude
- The latitudinal position of the point.
-
GeoPoint
public GeoPoint(double longitude, double latitude, Double altitude)
Constructs aGeoPoint
.- Parameters:
longitude
- The longitudinal position of the point.latitude
- The latitudinal position of the point.altitude
- The altitude of the point.
-
GeoPoint
public GeoPoint(GeoPosition position)
Constructs a geometric point.- Parameters:
position
- Thegeometric position
of the point.- Throws:
NullPointerException
- Ifposition
isnull
.
-
GeoPoint
public GeoPoint(GeoPosition position, GeoBoundingBox boundingBox, Map<String,Object> customProperties)
Constructs a geometric point.- Parameters:
position
- Thegeometric position
of the point.boundingBox
- Bounding box for the point.customProperties
- Additional properties of the geometric point.- Throws:
NullPointerException
- Ifposition
isnull
.
-
-
Method Detail
-
getCoordinates
public GeoPosition getCoordinates()
Thegeometric position
of the point.- Returns:
- The
geometric position
of the point.
-
getType
public GeoObjectType getType()
Description copied from class:GeoObject
Gets the GeoJSON type for this object.
-
-