Skip to content

Commit

Permalink
Fix GTFS color
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Jan 22, 2024
1 parent 7041b55 commit a6a44b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datasources/sources/gtfs_shape.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def map_tags(feat)
ref: { ref: ref }.compact_blank,
name: { fr: r['route_long_name'] }.compact_blank,
description: { fr: r['route_desc'] }.compact_blank,
colour: r['route_color'],
colour: r['route_color'] ? "##{r['route_color']}" : nil,
# route_text_color
# FIXME temp route:gpx_trace
route: {
Expand Down
2 changes: 1 addition & 1 deletion datasources/sources/gtfs_stop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def map_tags(feat)
r = feat['properties']
{
name: { fr: r['stop_name'] }.compact_blank,
colour: r['route_color'],
colour: r['route_color'] ? "##{r['route_color']}" : nil,
route_ref: r['route_ref'].split(',')
}
end
Expand Down

0 comments on commit a6a44b6

Please sign in to comment.