public class GeoPoint
extends java.lang.Object
Constructor and Description |
---|
GeoPoint(double latitude,
double longitude)
Constructor.
|
GeoPoint(android.location.Location location)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getLatitude() |
double |
getLongitude() |
public GeoPoint(android.location.Location location)
location
- A geographic location.public GeoPoint(double latitude, double longitude) throws java.lang.IllegalArgumentException
latitude
- Latitude, in degrees.longitude
- Longitude, in degrees.java.lang.IllegalArgumentException
- if coordinates are not valid.