Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcazevedo committed Nov 29, 2023
1 parent 138c394 commit 5664a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ The `Geo` object provides methods to compute distances in kilometers between two
import com.velocidi.apso.Geo

Geo.distance((41.1617609, -8.6024716), (41.1763745, -8.5964861))
// res2: Double = 1.7004440762344684
// res2: Double = 1.7004440788845807
```

You can also have the distance function curried if you are computing distances from a fixed point:
Expand All @@ -122,7 +122,7 @@ val distFromOffice = Geo.distanceFrom((41.1617609, -8.6024716))
```
```scala
distFromOffice((41.1763745, -8.5964861))
// res3: Double = 1.7004440762344684
// res3: Double = 1.7004440788845807

distFromOffice((38.7223032, -9.1414664))
// res4: Double = 275.118392477037
Expand Down

0 comments on commit 5664a5d

Please sign in to comment.