class Way (client-side)
Available since version: 0.3.0
This class represents a route between two waypoint names computed from Zengin zCRoute class.
Constructor
Way.new(string startWp, string endWp)
Parameters:
stringstartWp: Name of the start waypoint.stringendWp: Name of the end waypoint.
Properties
No properties.
Methods
getStart
This method will return the start waypoint name.
string getStart()
Returns string:
getEnd
This method will return the end waypoint name.
string getEnd()
Returns string:
getWaypoints
This method will return all waypoints from the computed route.
{wpName...} getWaypoints()
Returns {wpName...}:
Table with waypoint names.
getCountWaypoints
This method will return the number of waypoints in the computed route.
number getCountWaypoints()
Returns number:
Number of waypoints.
Callbacks
No callbacks.