Implements functions to convert distances and times to strings, as well as converting an IInstruction to a string. Override or implement your own if you need to customize formatting.
Optional
Formats a distance given in meters to a string with the given (or suitable if not provided) precision and unit
Formats an instruction to a human readable text
Formats a time duration, given in seconds, to a string with suitable precision and unit
Returns an icon name depending on the instruction type or modifier If it's a simple text instruction, no icon is returned by default
Generated using TypeDoc
Implements functions to convert distances and times to strings, as well as converting an IInstruction to a string. Override or implement your own if you need to customize formatting.