Skip to content

Commit bb59dcb

Browse files
update readme for scope information
1 parent 0d7ba11 commit bb59dcb

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ class Toko extends Model
6868

6969
I haven't tried how much data it can handle and how fast the calculations are so here are 3 different formulas you can try
7070

71-
```
72-
nearby(coordinate,radius/distance,formula)
73-
```
74-
7571

7672
formula paramter/arguments (int)
7773

@@ -91,3 +87,25 @@ $tokos = Toko::nearby([
9187
)
9288
->get();
9389
```
90+
91+
92+
## Scope
93+
94+
```
95+
nearby(coordinate,radius/distance = 5,formula = 0)
96+
```
97+
98+
```
99+
closest(coordinate,formula = 0)
100+
```
101+
102+
```
103+
farthest(coordinate,formula = 0)
104+
```
105+
106+
```
107+
selectDistance(fieldName,aliasName,formula = 0)
108+
```
109+
110+
```
111+
insideBox(coorinate(2 coordinate))

0 commit comments

Comments
 (0)