Crate what3words
source ·Expand description
What3Words Rust Client
Description
This is a client for the What3Words API, allowing you to convert coordinates to three-word addresses and vice versa. This client is based on the provided API documention on the What3Words website.
Features
The following endpoints have been implemented:
- Convert coordinates to 3words addresses;
- Convert 3words addresses to coordinates;
- Autosuggest 3words addresses based on given parameters;
- Retrieve a list of the coordinates of all what3words squares in a given rectangle which is defined by the coordinates of the southwestern and northeastern points;
- Retrieve the available languages and locales.
Structs
- A rectangle which is defined by the coordinate of the southwestern point and the coordinate of the northeastern point.
- A circle constructed of a centerpoint which is a coordinate and a radius in kilometers.
- The optional parameters for the
convert_to_3wa
calls. - Represents geographical coordinates with latitude and longitude.
- A polygon defined by at least 3 coordinates. The what3words API only supports up to 25 coordinates at the moment.
- The main client for interacting with the What3Words API.