From 6a22a4f324ecc4c0e4f7aa4a41cae68689c8cc19 Mon Sep 17 00:00:00 2001 From: Nate-Wessel Date: Thu, 11 Apr 2024 16:44:41 +0000 Subject: [PATCH] rename output field, change directions to -bound --- frontend/src/corridor.js | 8 ++++---- frontend/src/travelTimeQuery.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/corridor.js b/frontend/src/corridor.js index 6a89e44..8233b8b 100644 --- a/frontend/src/corridor.js +++ b/frontend/src/corridor.js @@ -80,10 +80,10 @@ export class Corridor extends Factor { // degrees from true East TODO: adjust this by 17 degrees const azimuth = r2d(Math.atan2(x,y)) const compass = { NE: 45, SE: -45, SW: -135, NW: 135 } - if( azimuth < compass.NE && azimuth > compass.SE ) return 'East' - if( azimuth > compass.NE && azimuth < compass.NW ) return 'North' - if( azimuth < compass.SE && azimuth > compass.SW ) return 'South' - if( azimuth > compass.NW || azimuth < compass.SW ) return 'West' + if( azimuth < compass.NE && azimuth > compass.SE ) return 'Eastbound' + if( azimuth > compass.NE && azimuth < compass.NW ) return 'Northbound' + if( azimuth < compass.SE && azimuth > compass.SW ) return 'Southbound' + if( azimuth > compass.NW || azimuth < compass.SW ) return 'Westbound' return azimuth } get name(){ diff --git a/frontend/src/travelTimeQuery.js b/frontend/src/travelTimeQuery.js index 2c70ee4..e504a48 100644 --- a/frontend/src/travelTimeQuery.js +++ b/frontend/src/travelTimeQuery.js @@ -57,7 +57,7 @@ export class TravelTimeQuery { const record = new Map() record.set('URI',this.URI) record.set('routeStreets',this.corridor.viaStreetsString) - record.set('bearing',this.corridor.bearing) + record.set('direction',this.corridor.bearing) record.set('startCrossStreets',this.corridor.startCrossStreetsString) record.set('endCrossStreets',this.corridor.endCrossStreetsString) record.set('timeRange',this.timeRange.name)