public class Location
extends java.lang.Object
| Constructor and Description |
|---|
Location(float latitude,
float longitude)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getBearing()
The current bearing of the vehicle in degrees (0-359).
|
java.lang.Integer |
getEta()
If present, the ETA in minutes until this location is reached.
|
float |
getLatitude()
The latitude in decimal notation.
|
float |
getLongitude()
The longitude in decimal notation.
|
public Location(float latitude,
float longitude)
latitude - The latitude in decimal notation.longitude - The longitude in decimal notation.public float getLatitude()
public float getLongitude()
@Nullable public java.lang.Integer getBearing()
null if the bearing is
unknown or no associated bearing.@Nullable public java.lang.Integer getEta()