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§
- Auto
Suggest Options - Bounding
Box - A rectangle which is defined by the coordinate of the southwestern point and the coordinate of the northeastern point.
- Circle
- A circle constructed of a centerpoint which is a coordinate and a radius in kilometers.
- Convert
To3WA Options - The optional parameters for the
convert_to_3wa
calls. - Convert
ToCoordinates Options - Coordinate
- Represents geographical coordinates with latitude and longitude.
- Grid
Section Options - Polygon
- A polygon defined by at least 3 coordinates. The what3words API only supports up to 25 coordinates at the moment.
- W3WClient
- The main client for interacting with the What3Words API.