DirectionsManager
instead@Deprecated
public class SitumRouteCalculator
extends java.lang.Object
This type of routes are suitable for wheelchairs, and are configured in the dashboard.
This type of routes are not valid for wheelchairs. This is the default type of route
To create a route from this class three values are needed. We need the actual point, the
destination point and if the route need to be suitable for wheel chairs. The points
are SitumFloorPoint
s in metric coordinates
With this class also we can obtain the distance of a route and compute the nearest position in the valid path given the estimated user position.
SitumFloorPoint
Constructor and Description |
---|
SitumRouteCalculator()
Deprecated.
|
SitumRouteCalculator(Building building,
java.util.Collection<Floor> floors,
BuildingPathGraph buildingGraph)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<SitumFloorPoint> |
computeRoute(SitumFloorPoint from,
SitumFloorPoint to,
boolean suitableforwheelchairs)
Deprecated.
Method to compute a route.
|
static float |
distanceToGoal(java.util.List<SitumFloorPoint> route)
Deprecated.
Obtain the distance in meters to the goal of a route.
|
SitumFloorPoint |
fitPositionToNearestPath(SitumFloorPoint position)
Deprecated.
Computes the nearest position in the valid path given the estimated user position.
|
public static float distanceToGoal(java.util.List<SitumFloorPoint> route)
route
- List of SitumFloorPointpublic java.util.List<SitumFloorPoint> computeRoute(SitumFloorPoint from, SitumFloorPoint to, boolean suitableforwheelchairs)
null
. We want create accesible routes or not changing the
suitableforwheelchairs
param. Remember that the from
and to
params
are SitumFloorPoint
s and the units of the x
and y
values are in
metersfrom
- Start point of the route. Units: SitumFloorPoint(meters, meters, levelid)to
- End point of the route. Units: SitumFloorPoint(meters, meters, levelid)suitableforwheelchairs
- true if the route should be computed for wheelchairs,
false otherwiseSitumFloorPoint
for the route. If no path found or the
path is empty then return an empty list of SitumFloorPoint
listpublic SitumFloorPoint fitPositionToNearestPath(SitumFloorPoint position)
null
if not has path. The x
and y
values
of the given SitumFloorPoint
are in metersposition
- current position.null
if the floor has no path