Direction generator
Returns a random direction (cardinal and ordinal; northwest, east, etc).
location.direction
Generator settings
Generate data to see results here.
Parameters & Example
Returns a random direction (cardinal and ordinal; northwest, east, etc).
location.direction(options?: { abbreviated? })- options
- The options to use.
- options.abbreviated
- If true this will return abbreviated directions (NW, E, etc). Otherwise this will return the long name. Defaults to false.
Example
"Northwest"Use synthetic data in a test environment.