RouteReverser
Summary
Helper class for reversing the order of waypoints in a route.
Constructor
aeris.maps.gmaps.route.commands.helpers.RouteReverser
Syntax
aeris.maps.gmaps.route.commands.helpers.RouteReverser
(
-
route
Summary
Parameters:
-
route
Route
Item Index
Methods
Properties
Methods
cloneWaypointWithAttributes_
Syntax
Summary
Create a copy of a waypoint, with the specified attributes.
Returns:
ensureRouteHasWaypoint_
Syntax
ensureRouteHasWaypoint_
(
private
-
waypoint
Summary
Parameters:
-
waypoint
Waypoint
getLastOrOnlyWaypointInReverse_
Syntax
Summary
Consider:
FIRST --- MIDDLE --- LAST (forward) LAST --- MIDDLE --- FIRST (reverse)
The LAST waypoint, when reversed, has no path preceding it.
Parameters:
-
waypoint
Waypoint
Returns:
getMiddleOrFirstWaypointInReverse_
Syntax
Summary
Consider:
FIRST MIDDLE >>> LAST (forward) LAST >>> MIDDLE FIRST (reverse)
The path preceding MIDDLE changes to the path which originally preceded LAST
Parameters:
-
waypoint
Waypoint
Returns:
getPathDescribingAttributesFrom_
Syntax
Summary
Parameters:
-
waypoint
Waypoint
Returns:
Object:
Path attribute, and attributes which describe the path.