Commit Graph

9 Commits

Author SHA1 Message Date
Paul van Tilburg f00fbc76ab
Fix links in README
In rustdoc, the crate's own types don't need to be linked, but for some
web view that uses plain Markdown, the links looked weird. Fix this by
linkin the crates' own types too.
2022-10-13 19:30:40 +02:00
Paul van Tilburg 56a888d5a3
Add support for serde (closes: #2)
* Introduce and document the `serde` feature
* Implement `serde::Deserialize` and `serde::Serialize` for `GeoUri`
* Add tests
2022-10-01 15:41:19 +02:00
Paul van Tilburg 758a3f8072
Add support for converting from/to Url structs (closes: #1)
* Introduce and document the `url` feature
* Implement `From<&GeoUri>` and `From<GeoUri>` for `Url`
* Implement `TryFrom<&Url>` and `TryFrom<Url>` for `GeoUri`
* Add and extend tests
2022-10-01 15:41:18 +02:00
Paul van Tilburg 2628e96740
Add support for conversion from coordinate tuples
* Implement the `TryFrom` trait for `GeoUri` for `(f64, f64)` and
  `(f64, f64, f64)`
* Extend the tests
* Update the documentation
2022-10-01 15:20:05 +02:00
Paul van Tilburg 8ad3d5dea7
Fix typos and improve examples 2022-10-01 15:19:59 +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 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 8e4c6ce7e5
Improve text; fix and improve examples 2022-09-29 19:54:01 +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