Skip to main content

Crate geo_coding

Crate geo_coding 

Source
Expand description

§geo-coding

Crates.io Version Docs dependency status

This is offline reverse geocoding crate that uses files derived from OSM data. In memory the data is stored in a two-dimensional tree that enables efficient queruing for nearest neighbours. The total size of all files related to Europe is around 200 MiB. You can use geo-coding-cli utility to produce your own files for particular Earth regions or for the full planet.

Structs§

Tree2D
Two-dimensional tree that maps a location given by [C; 2] to a value V.

Functions§

earth_distancestd
Returns geographical distance between two points.
euclidean_distance_squared
Returns squared Euclidean distance between two points.
orthogonal_distance
Returns maximum distance between two points computed along each axis individually, i.e. $ \mathrm{max}\left(\left|x_1 - x_0\right|, \left|y_1 - y_0\right|\right) $.

Type Aliases§

NamesTree
Two-dimensional tree that maps a location given by [i64; 2] to a string.