Cardinal Direction generator

Returns a random cardinal direction (north, east, south, west).

location.cardinalDirection

Generator settings

Generate data to see results here.

Parameters & Example

Returns a random cardinal direction (north, east, south, west).

location.cardinalDirection(options?: { abbreviated? })
options
The options to use.
options.abbreviated
If true this will return abbreviated directions (N, E, etc). Otherwise this will return the long name. Defaults to false.

Example

"South"

Use synthetic data in a test environment.

Related generators

Explore scenarios