We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a88a0a5 commit cb31a21Copy full SHA for cb31a21
README.md
@@ -48,10 +48,12 @@ $latitude = $latLng->lat;
48
$longitude = $latLng->long;
49
```
50
51
-You can also calculate the distance between two `LatLong` objects by using the `distanceTo` method.
+You can also calculate the distance between two `LatLong` objects by using the `distanceTo` method. The
52
+distance is returned in kilometers, and takes into account the curvature of the Earth using the Haversine
53
+formula.
54
55
```php
-$kilometresDistance = $homeCoords->distanceTo($toCoords);
56
+$distance = $fromCoords->distanceTo($toCoords);
57
58
59
0 commit comments