Skip to content

Add Longitude (geo) #38

@vhrcgcom

Description

@vhrcgcom

Description

Implement Longitude as a ValueObject in the geo module.

Spec: f64 in range −180.0..=180.0

Implementation checklist

  • Create src/geo/longitude.rs
  • Implement ValueObject trait
  • Add #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
  • Export from src/geo/mod.rs and prelude
  • Unit tests: valid input · empty input · invalid format · normalisation
  • Doc comment with # Example block
  • Update status in ROADMAP.md from ⬜ to ✅

Implementation detail

Input / Output

Type Alias
Input f64 LongitudeInput
Output f64 LongitudeOutput

Normalization

None.

Validation

  • Must be finite (not NaN, not infinite).
  • Must be in the range -180.0..=180.0 (inclusive).

Extra methods

None beyond the trait.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions