13 releases (7 stable)

1.3.1 Jun 15, 2024
1.3.0 Jan 14, 2024
1.2.0 Dec 24, 2023
1.1.0 Jun 7, 2022
0.1.2 Dec 22, 2021

#64 in Science

Download history 180/week @ 2024-07-28 169/week @ 2024-08-04 60/week @ 2024-08-11 278/week @ 2024-08-18 260/week @ 2024-08-25 231/week @ 2024-09-01 287/week @ 2024-09-08 327/week @ 2024-09-15 261/week @ 2024-09-22 216/week @ 2024-09-29 775/week @ 2024-10-06 405/week @ 2024-10-13 172/week @ 2024-10-20 427/week @ 2024-10-27 711/week @ 2024-11-03 325/week @ 2024-11-10

1,653 downloads per month
Used in 3 crates (via vbo)

MIT/Apache

37KB
675 lines

DMS Coordinates

Rust crates.io crates.io
crates.io License License

Rust Crate for D°M'S" coordinates manipulation, used in navigation ⛵ ✈️ 🚢

This crate exposes several structures

  • Cardinal points of a compass rose
  • D° M' S" to represent an angle as Degrees, Minutes and fractionnal seconds, so called "sexagesimal" format, with an optionnal Cardinal. This object can be used to represent Latitude / Longitude angles
  • DMS 3D comprises a Latitude, a Longitude angle and optionnal altitude (3D coordinates)

Features

  • std: this lib supports "no-std" by default
  • serde: enable DMS, DMS3d, Cardinal serdes ops, requires "std"
  • gpx: enables cast from Waypoint to DMS3D, requires "std"

Other solutions 🦀

Other solutions exist nowadays in Rust to deal with sexagesimal coordiantes.
The geodesy library is one of them, and most likely more consistent than this library.
The sole interest you can find here is the few dependencies that this library has.

Dependencies

~5–12MB
~143K SLoC