Path
Constructor
constructor
constructor(from = null: ?AdsumLocation, to = null: ?AdsumLocation, pmr = false: boolean): Path
Parameters:
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| from | ?AdsumLocation | null | No | |
| to | ?AdsumLocation | null | No | |
| pmr | boolean | false | No |
Properties
computed
| Type | Read-Only | Description |
|---|---|---|
| boolean | YES |
from
| Type | Read-Only | Description |
|---|---|---|
| ?AdsumLocation | YES |
pathSections
| Type | Read-Only | Description |
|---|---|---|
| PathSection[] | YES |
pmr
| Type | Read-Only | Description |
|---|---|---|
| boolean | YES |
to
| Type | Read-Only | Description |
|---|---|---|
| ?AdsumLocation | YES |
Methods
getDistance
getDistance(): ?number
Returns:
Returns null if the path is not computed yet.
Type: ?number
