Skip to content

Commit

Permalink
Delete extra bbox calc
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Apr 2, 2024
1 parent 94d4049 commit 32f6daf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/birch/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ FROM (
.insert_header(("Content-Type", "application/x-protobuf"))
.body(mvt_bytes)
}
Err(err) => HttpResponse::InternalServerError().body("Failed to fetch from postgres!"),
Err(err) => {
eprintln!("{:?}", err);
HttpResponse::InternalServerError().body("Failed to fetch from postgres!")
},
}
}

Expand All @@ -257,9 +260,9 @@ pub async fn shapes_not_bus(
) -> impl Responder {
let (z, x, y) = path.into_inner();

let grid = tile_grid::Grid::wgs84();
// let grid = tile_grid::Grid::wgs84();

let bbox = grid.tile_extent(x, y, z);
//let bbox = grid.tile_extent(x, y, z);

let sqlx_pool_ref = sqlx_pool.as_ref().as_ref();

Expand Down Expand Up @@ -364,8 +367,8 @@ pub async fn shapes_bus(
) -> impl Responder {
let (z, x, y) = path.into_inner();

let grid = tile_grid::Grid::wgs84();
let bbox = grid.tile_extent(x, y, z);
// let grid = tile_grid::Grid::wgs84();
// let bbox = grid.tile_extent(x, y, z);

let sqlx_pool_ref = sqlx_pool.as_ref().as_ref();

Expand Down

0 comments on commit 32f6daf

Please sign in to comment.