1 unstable release

0.1.0 Aug 14, 2023

#53 in #gps

Download history 462/week @ 2024-11-16 326/week @ 2024-11-23 327/week @ 2024-11-30 331/week @ 2024-12-07 320/week @ 2024-12-14 283/week @ 2024-12-21 266/week @ 2024-12-28 271/week @ 2025-01-04 282/week @ 2025-01-11 459/week @ 2025-01-18 252/week @ 2025-01-25 640/week @ 2025-02-01 315/week @ 2025-02-08 341/week @ 2025-02-15 934/week @ 2025-02-22 762/week @ 2025-03-01

2,616 downloads per month
Used in 3 crates (via nom-exif)

MIT license

43KB
861 lines

ISO6709 parser

This library uses the nom crate to create parsers to quickly convert ISO6709 formatted strings. This results in a much faster parse than using Regex based libraries, from 4 to 10x faster.

From traits have been implemented for the geo_types crate for easy conversion from strings.

Supports formats for latitude with N or S and E and W instead of + or -:
±DD.DD
±DDMM.MMM ±DDMMSS.SSS

for longitude: ±DDD.DDD ±DDDMM.MMM ±DDDMMSS.SSS

along with altitude when properly formatted IAW ISO6709, for example +1200.00-02130.00+2321CRS_WGS_85/

Also supports the "Human Readable" format: DD°MMSS.SSS″N DDD°MMSS.SSS″W

/// rust ///use iso6709parse::parse; /// ///let coord: geo_types::Coord = parse("N35.50W170.10+8712CRSWGS_85/").unwrap(); ///assert_eq!(coord.y, 35.5); /// ///

Dependencies

~1.5MB
~33K SLoC