public final class GeoLocation extends Object
| Modifier and Type | Field and Description |
|---|---|
double |
latitude
The latitude of this location in the range of [-90, 90]
|
double |
longitude
The longitude of this location in the range of [-180, 180]
|
| Constructor and Description |
|---|
GeoLocation(double latitude,
double longitude)
Creates a new GeoLocation with the given latitude and longitude.
|
public final double latitude
public final double longitude
public GeoLocation(double latitude,
double longitude)
latitude - The latitude in the range of [-90, 90]longitude - The longitude in the range of [-180, 180]IllegalArgumentException - If the coordinates are not valid geo coordinatespublic static boolean coordinatesValid(double latitude,
double longitude)
latitude - The latitude must be in the range [-90, 90]longitude - The longitude must be in the range [-180, 180]Copyright © 2015 Firebase. All rights reserved.