This crate provides forward– and reverse-geocoding functionality for Rust.
Over time, a variety of providers will be added. Each provider may implement one or both
Reverse traits, which provide forward– and reverse-geocoding methods.
Note that for the
reverse method, the return type is simply
As this is the lowest common denominator reverse-geocoding result.
Individual providers may implement additional methods, which return more
finely-structured and/or extensive data, and enable more specific query tuning.
While individual providers may specify coordinates in either
[Longitude, Latitude] or
[Latitude, Longitude] order,
Geocoding always requires
Point data in
[Longitude, Latitude] (
x, y) order,
and returns data in that order.
The OpenCage Geocoding provider.
A single Point in 2D space.
Forward-geocode a coordinate.
Reverse-geocode a coordinate.