| Crates.io | haversine-alpha |
| lib.rs | haversine-alpha |
| version | 0.1.0 |
| created_at | 2022-08-31 20:26:08.53442+00 |
| updated_at | 2022-08-31 20:26:08.53442+00 |
| description | A CLI to get the distance (Km) between multiple coordinates using Haversine formula |
| homepage | |
| repository | https://github.com/costa86/haversine-alpha |
| max_upload_size | |
| id | 655908 |
| size | 12,270,538 |
A CLI tool to get the shortest distance (km) between multiple coordinates

cargo install haversine-alpha
| OS | Architecture | File* |
|---|---|---|
| Linux | x86_64 | haversine-alpha |
| Windows | x86_64 | haversine-alpha.exe |
Lorenzo Costa <http://www.costa86.tech>
Gets the distance (Km) between multiple coordinates using Haversine formula
USAGE:
harversine --coordinates <LATITUDE,LONGITUDE>
OPTIONS:
-c, --coordinates <LATITUDE,LONGITUDE>
Comma-separated pairs of latitudes and longitudes. Accepts more than 2 coordinates
-h, --help
Print help information
-V, --version
Print version information
| Place | Latitude | Longitude |
|---|---|---|
| Paris | 48.96817 | 2.34246 |
| Bruxels | 50.49890 | 4.71467 |
| Frankfurt | 50.29843 | 8.42832 |

./haversine-alpha -c 48.96817,2.34246,50.49890,4.71467,50.29843,8.42832
505.03
Just a reminder about coordinates:
| Min | Max | |
|---|---|---|
| Latitude | -90 | 90 |
| Longitude | -180 | 180 |