Commit Graph

20 Commits

Author SHA1 Message Date
Paul van Tilburg 8201b4d17b
Bump the version to 0.1.1 2022-09-30 20:52:08 +02:00
Paul van Tilburg eba77d57f8
Add a changelog 2022-09-30 20:50:57 +02:00
Paul van Tilburg 93cc6a8501
Add some more extra fields 2022-09-30 20:44:11 +02:00
Paul van Tilburg 3a9bc96289
Update the examples in README.md; tweak text 2022-09-30 08:08:03 +02:00
Paul van Tilburg df5901aa72
Include examples from RFC 5870 as tests 2022-09-29 22:24:00 +02:00
Paul van Tilburg 6a9c13d099
Change uncertainty distance to be of type f64
The uncertainty distance is a positive floating number.

* Validate this while parsing/building/using the setter
* Add the error variant `Error::OutOfRangeUncertainty` and change
  `Error::InvalidDistance` to `Error::InvalidUncertainty`
* Update the tests
2022-09-29 22:19:45 +02:00
Paul van Tilburg 2efdddc209
Add builder tests for required fields and validation 2022-09-29 21:45:00 +02:00
Paul van Tilburg fb888e4c1e
Handle (partly) uppercase parameter names 2022-09-29 21:33:28 +02:00
Paul van Tilburg 3e2584dcda
Add getters/setters for `GeoUri`
Also make all of its fields private.
This prevents parsing/building a valid geo URI and then making it
invalid by setting the latitude/longitude to something incorrect.
2022-09-29 21:25:01 +02:00
Paul van Tilburg e526fa0c5e
Rename the error type; sort and shorten some variants 2022-09-29 21:00:39 +02:00
Paul van Tilburg a8a655f388
Validate latitude/longitude coordinates for WGS-84
Implement this for the parser as well as the builder.

Also rename `CrsId` to `CoordRefSystem` and the `GeoUri.crs_id` field
to `GeoUri.crs`.
2022-09-29 20:51:30 +02:00
Paul van Tilburg a71b9e8a2b
Implement and improve test; fix altitude formatting error 2022-09-29 20:22:23 +02:00
Paul van Tilburg 530a0a4048
Add examples; tweak documentation 2022-09-29 19:54:01 +02:00
Paul van Tilburg 8e4c6ce7e5
Improve text; fix and improve examples 2022-09-29 19:54:01 +02:00
Paul van Tilburg f64e8d99cd
Fix builder requiring fields that are optional/have defaults 2022-09-29 19:54:01 +02:00
Paul van Tilburg 11412a7ff9
Enable a bunch of lints 2022-09-29 19:39:13 +02:00
Paul van Tilburg 537d944858
Set some warnings/error lints 2022-09-27 18:01:26 +02:00
Paul van Tilburg f24fe7f6d3
Add missing fields to Cargo.toml 2022-09-27 18:01:06 +02:00
Paul van Tilburg 7ec8dbc7d3
Add README.md and LICENSE file
Also link the files from the crate and include `README.md` as the
crate documentation.
2022-09-27 18:00:03 +02:00
Paul van Tilburg 2029eadb3c
Initial import into Git 2022-09-27 17:10:45 +02:00