Skip to main content

Crate reverse_geocoder_cn

Crate reverse_geocoder_cn 

Source
Expand description

Offline reverse geocoding for Chinese province, prefecture and county boundaries.

The published crate bundles cn_admin.bin; use ReverseGeocoder::embedded for the simplest setup. To refresh it, run build-data with the three GeoJSON files downloaded from Tianditu.

Re-exports§

pub use error::BuildError;
pub use error::CoordinateParseError;
pub use error::Error;
pub use geocoder::Address;
pub use geocoder::AdministrativeArea;
pub use geocoder::ReverseGeocoder;
pub use store::build_data;

Modules§

error
Error types returned by the library and data builder.
geocoder
In-memory spatial index and reverse-geocoding API.
store
Binary data storage and GeoJSON-to-binary conversion.