# Vms2TileDbReader


[](https://codecov.io/gh/ringostarr80/rust-vms2-tile-db-reader)
[](https://sonarcloud.io/summary/new_code?id=ringostarr80_rust-vms2-tile-db-reader)

[](https://crates.io/crates/vms2-tile-db-reader)
This is the rust version of the repository from https://github.com/locr-company/php-vms2-tile-db-reader
## Installation
```bash
cd /path/to/your/rust/project
cargo add vms2-tile-db-reader
```
## Basic Usage
```rust
use std::path::Path;
use vms2_tile_db_reader::{
data_type::DataType,
sources::Source,
sources::SQLite
};
let tile_db = SQLite::new(Path::new("germany.sqlite")).unwrap();
let tile_data = tile_db.get_raw_data(
34686,
21566,
16,
String::from("building"),
Some(String::from("*")),
Some(DataType::Polygons)
).unwrap();
// do something with tile_data.
```