File: coordinates.md

package info (click to toggle)
node-chance 2.2.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,612 kB
  • sloc: javascript: 16,572; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# coordinates

```js
// usage
chance.coordinates()
chance.coordinates({fixed: 2})
```

Generate random coordinates, which are latitude and longitude, comma separated.

```js
chance.coordinates();
=> "-29.52974, 24.52815"
```

By default includes 5 fixed digits after decimal, can specify otherwise.

```js
chance.coordinates({fixed: 2});
=> "-49.16, 68.81"
```