Skip to content

Commit

Permalink
add usage example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Mar 29, 2024
1 parent 250efb7 commit 92cd3eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# geo_bearing

Calculates initial and final bearings between two points using great-circle distance formulas. Perfect for navigation and mapping applications.
Crystal implementation of calculating initial and final bearings between two points using great-circle distance formulas.

## Installation

Expand All @@ -18,13 +18,18 @@ Calculates initial and final bearings between two points using great-circle dist

```crystal
require "geo_bearing"
```
TODO: Write usage instructions here
lat1, lng1 = {48.8566, 2.3522} # Paris
lat2, lng2 = {40.7128, -74.0060} # New York
Geo::Bearing.bearing(lat1, lng1, lat2, lng2)
# => 291.7938627483058
## Development
Geo::Bearing.bearing(lat1, lng1, lat2, lng2, true)
# => 233.70448129781204
```

TODO: Write development instructions here
![convex hull](/assets/readme_image.png)

## Contributing

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 92cd3eb

Please sign in to comment.