EvacPath
EvacPath instances are generated by the Plan when calling methods that return evac paths. They can be displayed by the Viewer (using viewer.setEnabledEvacPaths()
), and they allow you to access their properties.
You cannot directly create EvacPath instances, and you cannot modify any of their properties.
evacPath.getPlanCode()
- Returns: <string>
Returns the plan code of the plan that this evac path is associated with.
evacPath.getDistance()
- Returns: <number>
Returns the distance of the evac path (from its beginning to its end), in meters.
evacPath.isPrimaryPath()
- Returns: <boolean>
Returns whether the evac path is a primary path. Primary paths are the recommended paths for evacuation - if a path is not primary then it is secondary and is suitable as a fallback path.