Crate iso6709parse

Source

Modules§

parsers

Structs§

ISO6709Coord
The struct that this library’s parses create. geo_types Point and Coord have the Into traits
implemented for this struct, so using this struct is only needed if you wish to create your own struct or enum that implements From<ISO6709Coord>
ISO6709Error

Functions§

parse
Parse either of the two different formats.
parse_readable
Parses a string in ISO6709 human readable format into any struct that implements From<ISO6709Coord>.
Using a normal single quote ' in place of , and a double quote " in place of is acceptable.
An error will be returned if the resulting coordinate exceeds 90° for latitude and 180° for longitude in either direction.
parse_string_representation
Parses a string in ISO6709 string representation format into any struct that implements From<ISO6709Coord>
Supports the formats:
DD.DDD
DDMM.MMMM
DDMMSS.SSSS
and using either +/- or N/S and E/W.
NOTE: digits less than 10 in the degree, minutes, or seconds column need to have a leading zero, as is IAW ISO6709
An error will be returned if the resulting coordinate exceeds 90° for latitude and 180° for longitude in either direction.