Skip to content

Get Long Direction

getLongDir(input: string)

Gets the normalized, long direction string for a given direction

ParamTypeDescription
dirstringDirection to normalize

Example

js
const dir1 = map.getLongDir("n"); // results in "north"
const dir2 = map.getLongDir("north"); // also results in "north"