OptionalcostOptionalmeasureMeasure of the segment from the previous to
this waypoint? The distance, cost, spaces, diagonals,
and Euclidean length of a segment that is not measured are
always 0. Default: true.
OptionalteleportTeleport to this waypoint? Default: false.
A predetermined cost (nonnegative) or cost function to be used instead of
options.cost.