From 09980294a868e7ea9a141034aa328a14f1ba55b3 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Fri, 3 May 2024 14:27:29 -0700 Subject: [PATCH] [travelmux] OTP's absolute_direction is optional --- docker-compose-with-transit.yaml | 4 ++-- services/travelmux/src/otp/otp_api.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose-with-transit.yaml b/docker-compose-with-transit.yaml index 798bd8fcd..dffe5bf71 100644 --- a/docker-compose-with-transit.yaml +++ b/docker-compose-with-transit.yaml @@ -48,7 +48,7 @@ services: networks: - otp_backend # ports: - # - "9001:8000" + # - "9002:8000" travelmux: image: ghcr.io/headwaymaps/travelmux:latest restart: always @@ -89,7 +89,7 @@ services: valhalla-init: condition: service_completed_successfully # ports: - # - "9002:8002" + # - "9001:8002" frontend-init: image: ghcr.io/headwaymaps/headway-init:latest env_file: .env diff --git a/services/travelmux/src/otp/otp_api.rs b/services/travelmux/src/otp/otp_api.rs index 9b4b49c09..ae5a9378a 100644 --- a/services/travelmux/src/otp/otp_api.rs +++ b/services/travelmux/src/otp/otp_api.rs @@ -96,8 +96,8 @@ pub struct Step { pub relative_direction: RelativeDirection, /// The name of the street. pub street_name: String, - /// The absolute direction of this step. - pub absolute_direction: AbsoluteDirection, + /// The absolute (compass) direction of this step. + pub absolute_direction: Option, /// When exiting a highway or traffic circle, the exit name/number. pub exit: Option, /// Indicates whether or not a street changes direction at an intersection.