Skip to content

Commit

Permalink
formating
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhamel committed Nov 14, 2024
1 parent 3c79df5 commit 1c2d938
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/mtl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ pub async fn fetch_montreal_data(conn: &sqlx::Pool<Postgres>) {
}

pub async fn read_tile(sm: &SphericalMercator, conn: &sqlx::Pool<Postgres>) {
let response = match reqwest::get(format!("https://api.montreal.ca/api/it-platforms/geomatic/vector-tiles/maps/v1/entraves-polygonales/{}/{}/{}.pbf", sm.zoom, sm.x, sm.y)).await {
let response = match reqwest::get(
format!("https://api.montreal.ca/api/it-platforms/geomatic/vector-tiles/maps/v1/entraves-polygonales/{}/{}/{}.pbf",
sm.zoom,
sm.x,
sm.y)).await {
Ok(r) => r,
Err(e) => {
println!("Error fetching tile: {}", e);
Expand Down

0 comments on commit 1c2d938

Please sign in to comment.