Direction生成器

Direction生成器 · location.direction. 生成方法 · 示例

location.direction

生成设置

生成后在这里查看结果。

参数 & 示例

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.

示例

"Northwest"

请在测试环境使用合成数据。

相关生成器

探索场景模板