Arbitrary extra metadata, preserved on the connection and passed to the label function.
The first endpoint of the connection. Either a Place object or the id of a place currently shown by the module.
OptionalidOptional stable id for this connection. When omitted, an id is generated.
The second endpoint of the connection. Either a Place object or the id of a place currently shown by the module.
Describes a single connection between two places, to be rendered as a line on the map.
Remarks
Each endpoint can be given either as a full Place object or as the
idof a place that is currently displayed by the PlacesModule (viashow()). When an id is given, the module resolves it against its currently shown places to obtain the coordinates; connections referencing unknown ids are silently skipped.Extra arbitrary properties are preserved on the connection and passed to the optional label function, making it easy to render metadata such as distance or travel time along the line.
Example