Expand description
§Slippy Map Tilenames
The slippy_map_tilenames
crate provides functions to convert lon/lat coordinates to slippy map tile format.
See this article by wiki.openstreetmap.org
Some other functions to help in dealing with the slippy map format are provided as well.
§Breaking Changes
This crate is designed for retrocompatibility; i.e., to provide functions that consistently have the same signature, no matter which version of the crate you will use.
§Warning
All the functions provided by this crate do not check the validity of the data in input. However, since they are based on equations, some of them still give in output a result in presence of invalid input; this result is indeed meaningles.
The care of checking on the validity of the data in input is left to the user of this crate.
For further reference, see the sections Unexpected Behavior related to each function.
Functions§
- lonlat2tile
- Convert lon/lat coordinates to a slippy map tile, at a given zoom.
- tile2lonlat
- Convert slippy map tile to lon/lat coordinates, at a given zoom.
- zoom_in
- Zooms in starting from the given tile
- zoom_
out - Zooms out starting from the given tile