public abstract class Bearing extends Object
Constructor and Description |
---|
Bearing() |
Modifier and Type | Method and Description |
---|---|
double |
getBearingAngle(Location userLocation,
double currentHeading)
Gets the bearing from the specified location and heading to the incident.
|
double |
getDistance(GeoPoint from)
Returns the distance to the incident location from the specified point.
|
double |
getDistanceKM()
Gets the distance value that was previously set.
|
double |
getLatitude()
Gets the latitude of the incident.
|
abstract GeoPoint |
getLocation() |
double |
getLongitude()
Gets the longitude of the incident.
|
void |
setDistance(GeoPoint from)
Setting the distance to the incident location from the
GeoPoint provided. |
public abstract GeoPoint getLocation()
public final double getLatitude()
public final double getLongitude()
public final double getDistanceKM()
public final double getDistance(GeoPoint from)
from
- The point to calculate the distance fromUserPreferences.getSettingUnits()
)public final void setDistance(GeoPoint from)
GeoPoint
provided.from
- The point to calculate and set the distance from for the current instance.public final double getBearingAngle(Location userLocation, double currentHeading)
userLocation
- The user's location.currentHeading
- The user's current heading.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.