Skip to content

Commit

Permalink
Remove typo shape_id from stops fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Apr 2, 2024
1 parent 32f6daf commit 5570362
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions src/birch/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,32 +108,9 @@ pub async fn nanotime(req: HttpRequest) -> impl Responder {
#[actix_web::get("/busstops")]
pub async fn bus_stops_meta(req: HttpRequest) -> impl Responder {
let mut fields = std::collections::BTreeMap::new();

/*
onestop_feed_id,
shape_id,
attempt_id,
gtfs_id,
name,
displayname,
code,
gtfs_desc,
location_type,
parent_station,
zone_id,
url,
timezone,
wheelchair_boarding,
level_id,
platform_code,
routes,
route_types,
children_ids,
children_route_types,
*/


fields.insert(String::from("onestop_feed_id"), String::from("text"));
fields.insert(String::from("shape_id"), String::from("text"));
fields.insert(String::from("attempt_id"), String::from("text"));
fields.insert(String::from("gtfs_id"), String::from("text"));
fields.insert(String::from("name"), String::from("text"));
Expand Down Expand Up @@ -204,7 +181,6 @@ pub async fn bus_stops(
FROM (
SELECT
onestop_feed_id,
shape_id,
attempt_id,
gtfs_id,
name,
Expand Down

0 comments on commit 5570362

Please sign in to comment.