You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,24 @@ Where:
74
74
-**`radius`***required* The distance (meters) from `centerPoint`.
75
75
-**`randomFn`***optional* A random function. Output is >=0 and <=1. Allows usage of seeded random number generators (see [`seedrandom`](https://www.npmjs.com/package/seedrandom)) - more predictability when testing.
76
76
77
+
### `randomLocation.randomAnnulusPoint(...)`
78
+
79
+
Outputs a Point ( `{ latitude: ..., longitude: ... }`) of random coordinates in a region bounded by two concentric circles (annulus).
-**`centerPoint`***required* An object with a `latitude` and `longitude` fields.
90
+
-**`innerRadius`***required* The readius of the smaller circle.
91
+
-**`outerRadius`***required* The readius of the larger circle.
92
+
-**`randomFn`***optional* A random function. Output is >=0 and <=1. Allows usage of seeded random number generators (see [`seedrandom`](https://www.npmjs.com/package/seedrandom)) - more predictability when testing.
0 commit comments