public class GeoPoint extends Object implements Serializable
Constructor and Description |
---|
GeoPoint(double latitude,
double longitude)
Construct a new GeoPoint using the provided latitude and longitude values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns true if this GeoPoint is equal to the provided object.
|
double |
getLatitude()
Returns the latitude.
|
double |
getLongitude()
Returns the longitude.
|
int |
hashCode() |
String |
toString() |
public GeoPoint(double latitude, double longitude)
latitude
- The latitude of this GeoPoint in the range [-90, 90].longitude
- The longitude of this GeoPoint in the range [-180, 180].public double getLatitude()
public double getLongitude()
public boolean equals(Object obj)
Copyright © 2019 Google LLC. All rights reserved.