Skip to content

Commit b486365

Browse files
authored
Add note about type being optional
1 parent 9cbf119 commit b486365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $distanceType = new EuclideanSquare();
2828
$distanceType = new Haversine(); # For GPS coordinates (latitude and longitude)
2929

3030
$distance = (new Distance())
31-
->type(new Euclidean())
31+
->type(new Euclidean()) # Type is optional, and defaults to Euclidean distance
3232
->from($a)
3333
->to($b)
3434
->get();

0 commit comments

Comments
 (0)