Description Usage Arguments Value Examples
Functions to make the interface easier and more intuitive to use - they convert numeric edgeweights (e.g. 900) to character strings (e.g. "15min"), and vice versa.
1 2 3 | numericEdgeWeight(edgeWeight, type)
prettyEdgeWeight(edgeWeight, type)
|
edgeWeight |
A time or distance, in numeric or string form. |
type |
Either 'time' or 'distance'. |
Either a numeric or formatted edgeweight
1 2 3 4 5 | numericEdgeWeight("1hr 30m", "time") # 5400
numericEdgeWeight("1ml", "distance") # 1609
prettyEdgeWeight(1245, "time") # 30min 45s
prettyEdgeWeight(1245, "distance") # 1km 245m
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.