Skip to content

Commit

Permalink
Add support for highway=busway as routable
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel committed Nov 14, 2023
1 parent d13bdbe commit a9aa22b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions modules/osm/intersection.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export function osmIntersection(graph, startVertexId, maxDistance) {
'unclassified': true,
'living_street': true,
'service': true,
'busway': true,
'road': true,
'track': true
};
Expand Down
2 changes: 1 addition & 1 deletion modules/osm/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export var osmRightSideIsInsideTags = {
export var osmRoutableHighwayTagValues = {
motorway: true, trunk: true, primary: true, secondary: true, tertiary: true, residential: true,
motorway_link: true, trunk_link: true, primary_link: true, secondary_link: true, tertiary_link: true,
unclassified: true, road: true, service: true, track: true, living_street: true, bus_guideway: true,
unclassified: true, road: true, service: true, track: true, living_street: true, bus_guideway: true, busway: true,
path: true, footway: true, cycleway: true, bridleway: true, pedestrian: true, corridor: true, steps: true
};

Expand Down
5 changes: 3 additions & 2 deletions modules/pixi/PixiLayerOsm.js
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,9 @@ const HIGHWAYSTACK = {
unclassified: -8,
residential: -9,
service: -10,
track: -11,
footway: -12
busway: -11,
track: -12,
footway: -20
};


Expand Down
5 changes: 5 additions & 0 deletions modules/ui/fields/access.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ export function uiFieldAccess(context, uifield) {
motor_vehicle: 'yes',
bicycle: 'yes',
horse: 'yes'
},
busway: {
access: 'no',
bus: 'designated',
emergency: 'yes'
}
};

Expand Down

0 comments on commit a9aa22b

Please sign in to comment.