Skip to content

Commit

Permalink
rename output field, change directions to -bound
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate-Wessel committed Apr 11, 2024
1 parent db318f3 commit 6a22a4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions frontend/src/corridor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/travelTimeQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6a22a4f

Please sign in to comment.