Skip to content

Commit

Permalink
add sample image
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Apr 3, 2024
1 parent e7c8d98 commit b691f25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@ london = [51.500153, -0.126236]
new_york = [40.714268, -74.005974]
distance = Haversine.distance(new_york, london)
distance.to_kilometers # => 5570.4744596620685
distance.to_kilometers # => 5570.482153929098
london = {51.500153, -0.126236}
new_york = {40.714268, -74.005974}
distance = Haversine.distance(new_york, london)
distance.to_kilometers # => 5570.4744596620685
distance.to_kilometers # => 5570.482153929098
```

![haversine](/assets/readme_image.png)

Also you can compare `Haversine::Distance` objects:

```crystal
Expand Down
Binary file added assets/readme_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b691f25

Please sign in to comment.