public final class GeoPoint extends Object
Modifier and Type | Method and Description |
---|---|
static GeoPoint |
create(double latitude,
double longitude)
Create GeoPoint object from latitude and longitude
|
static GeoPoint |
create(double latitude,
double longitude,
CoordinateSystem coordinateSystem)
Create GeoPoint object from latitude, longitude and coordinate system
|
boolean |
equals(Object o)
Checks equality between two Geo Points
|
CoordinateSystem |
getCoordinateSystem()
Retrieve GeoPoint CoordinateSystem
|
double |
getLatitude()
Return latitude
|
double |
getLongitude()
Return longitude
|
String |
getType()
Retrieve GeoPoint type
|
int |
hashCode()
Returns hash code for Geo Point
|
boolean |
isValid()
Ensures that the GeoPoint values are valid for the Geography Point type in Azure Cognitive Search service.
|
GeoPoint |
setCoordinates(List<Double> coordinates)
Set coordinates
|
GeoPoint |
setCoordinateSystem(CoordinateSystem coordinateSystem)
Set CoordinateSystem
|
String |
toString()
Retrieve GeoPoint string representation
|
public String getType()
public static GeoPoint create(double latitude, double longitude)
latitude
- latitude value of the GeographyPointlongitude
- longitude value of the GeographyPointpublic static GeoPoint create(double latitude, double longitude, CoordinateSystem coordinateSystem)
latitude
- latitude value of the GeographyPointlongitude
- longitude value of the GeographyPointcoordinateSystem
- EPSG:4326 coordination systempublic boolean isValid()
public boolean equals(Object o)
public int hashCode()
public String toString()
public double getLatitude()
public double getLongitude()
public GeoPoint setCoordinates(List<Double> coordinates)
coordinates
- list of coordinatespublic CoordinateSystem getCoordinateSystem()
public GeoPoint setCoordinateSystem(CoordinateSystem coordinateSystem)
coordinateSystem
- CoordinateSystemCopyright © 2020 Microsoft Corporation. All rights reserved.