Geographic coordinates format conversions
Description
Mixed rust crate for converting latitude and longitude representations.
Provides
- a command line interface,
- as well as public types and factories for parsing and writing formatted coordinates.
Supported formats
Format identifier | Example | Used in |
---|---|---|
decimal | 50.894361, 10.955342 |
https://maps.google.com |
dms | 50°53'39.70''N 10°57'19.23''E |
Degrees, minutes, seconds |
fl95 | N 50 53.7 E 010 57.3 |
https://fl95.de |
fpl | 5054N01057E |
AIS flight plans |
notam | 505340N 0105719E |
AIS NOTAMs |
CLI installation
cargo install coordfmt
Features
man: Generate manual page
Dependency: pandoc.
Build crate including manual page:
cargo build --features man
Output is written into target/man
.
CLI installation
cargo install coordfmt
Generate Debian package
Dependencies: feature man
, cargo-deb.
Example:
cargo deb
Generate RPM package
Dependencies: feature man
, cargo-generate-rpm.
Example:
cargo build --release --features man
cargo generate-rpm