ClosestFacilityRoute

A class that contains the output from a solving closest task for a single result. The solving closest route contains all necessary output from a successfully- completed ClosestFacilityTask.solveClosestFacility(ClosestFacilityParameters). This includes the cost, geometry, and additional metadata specific to the resulting route solution (e.g., route directions, local start/end time, etc.).

Since

200.1.0

See also

Properties

Link copied to clipboard

Arrival curb approach. Default value CurbApproach.EitherSide will be returned on error.

Link copied to clipboard

Departure curb approach.

Link copied to clipboard

Direction maneuver. The list of turn-by-turn directions for this route. Can be empty array in case if ClosestFacilityParameters.returnDirections is false.

Link copied to clipboard

End time. A null if departure/arrival time was not specified in ClosestFacilityParameters.

Link copied to clipboard

Time zone shift for end time, in minutes. Value of the time zone shift for end time, in minutes.

Link copied to clipboard

Route's geometry. The geometry for the full route (polyline) in case if ClosestFacilityParameters.returnRoutes is true.

Link copied to clipboard

Start time. A null if departure/arrival time was not specified in ClosestFacilityParameters.

Link copied to clipboard

Time zone shift for start time in minutes. Value of the time zone shift for start time, in minutes.

Link copied to clipboard

Total length in meters. The total length of a closest facility route (meters).

Link copied to clipboard

Total time in minutes. The total time in minutes calculated for the route. In order to get this value, time attribute should be set in as impedance or accumulate attribute in parameters object.

Link copied to clipboard

Travel time in minutes. Travel time is total amount of travel time exclude added minutes from incident/facility added costs(if specified).

Functions

Link copied to clipboard
fun getCost(attributeName: String): Double

Gets cost. Returns the associated cost for this attribute name.