public class RouteProjectedPoint extends RoutePoint
Modifier and Type | Field and Description |
---|---|
double |
bearing
Orientation of the route segment in which the user is, counted
clockwise from north
|
double |
distanceFromStart
Distance in meters from the starting point
|
double |
distanceToShape
Distance between the user position and the shape
|
boolean |
endRoute
Flag telling whether the user has reached the end of the route
|
boolean |
wrongDirection
Flag telling whether the user has been going in the wrong direction
|
building, buildingId, floorNumber, latitude, longitude, x, y
Constructor and Description |
---|
RouteProjectedPoint(double x,
double y,
int floorNumber,
java.lang.String building,
double distanceStart,
double distanceShape,
double bearingAngle)
Deprecated.
|
RouteProjectedPoint(double latitude,
double longitude,
java.lang.String building,
int floorNumber,
double distanceStart,
double distanceShape,
double bearingAngle)
RouteProjectedPoint constructor.
|
Modifier and Type | Method and Description |
---|---|
static RouteProjectedPoint |
project(LocationResult loc,
Route route)
This method returns the projection of the user position to the route.
|
getLatitude, getLatLng, getLongitude, toJson, toString
public final double distanceFromStart
public final double distanceToShape
public final double bearing
public final boolean wrongDirection
public final boolean endRoute
@Deprecated public RouteProjectedPoint(double x, double y, int floorNumber, java.lang.String building, double distanceStart, double distanceShape, double bearingAngle)
RouteProjectedPoint(double, double, String, int, double, double, double)
instead.x
- WGS84 Longitudey
- WGS84 LatitudefloorNumber
- Floor numberbuilding
- Building IDdistanceStart
- Distance in meters from the starting pointdistanceShape
- Distance between the user position and the shapebearingAngle
- Orientation of the route segment in which the user is, counted
clockwise from northpublic RouteProjectedPoint(double latitude, double longitude, java.lang.String building, int floorNumber, double distanceStart, double distanceShape, double bearingAngle)
latitude
- WGS84 Latitudelongitude
- WGS84 LongitudefloorNumber
- Floor numberbuilding
- Building IDdistanceStart
- Distance in meters from the starting pointdistanceShape
- Distance between the user position and the shapebearingAngle
- Orientation of the route segment in which the user is, counted
clockwise from northpublic static RouteProjectedPoint project(LocationResult loc, Route route)
loc
- Current user positionroute
- The route to which the point will be projected