tiles-client

Crates.iotiles-client
lib.rstiles-client
version0.8.1
created_at2026-01-01 17:17:52.175695+00
updated_at2026-01-03 19:57:55.01048+00
descriptionClient for downloading tiles.
homepagehttps://cyloncore.com
repositoryhttps://gitlab.com/cyloncore/cartography-rs
max_upload_size
id2016494
size61,385
Cyrille Berger (cyrilleberger)

documentation

README

tiles-client

Download tiles from a tiles server and save them in a local file cache.


let client = tiles_client::ClientBuilder::new(
        "com.examples.tiles_client",
        "https://address.to.tile.server.org/{z}/{x}/{y}.png",
    )
    .build();

let tiles = client.tiles(
    // Area
    geo::Rect::new(
        geo::Coord { x: -180.0, y: -80.0},
        geo::Coord { x: 180.0, y: 80.0},
    ),
    // Zoon level
    1,
    // Do not download tiles. Set to true to download tiles.
    false,
);

It is the API user responsability to ensure compliance with the license of the tile server.

Commit count: 26

cargo fmt