12 releases (6 stable)

1.3.0 Jan 14, 2024
1.2.0 Dec 24, 2023
1.1.0 Jun 7, 2022
1.0.0 Mar 27, 2022
0.1.2 Dec 22, 2021

#116 in Science

Download history 28/week @ 2023-12-23 15/week @ 2023-12-30 22/week @ 2024-01-06 20/week @ 2024-01-13 8/week @ 2024-01-20 3/week @ 2024-01-27 23/week @ 2024-02-03 58/week @ 2024-02-10 83/week @ 2024-02-17 80/week @ 2024-02-24 58/week @ 2024-03-02 110/week @ 2024-03-09 92/week @ 2024-03-16 27/week @ 2024-03-23 72/week @ 2024-03-30 42/week @ 2024-04-06

244 downloads per month
Used in 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–7.5MB
~145K SLoC