diff --git a/example-config.yml b/example-config.yml index 0bc4e0feb..e87208b9d 100644 --- a/example-config.yml +++ b/example-config.yml @@ -668,4 +668,7 @@ itinerary: ### Setting this to true will use the route viewer sort algorithm on routes # useRouteViewSort: false ### Setting this to false will hide the shadowey dot that appears when dragging the map -# showShadowDotOnMapDrag: false \ No newline at end of file +# showShadowDotOnMapDrag: false +### In routes, this will always show the routeLongName before the headsign +### !!! WARNING: in some feeds, this may show the long name twice. In some feeds, this may cause layout issues !!! +# alwaysShowLongName: false \ No newline at end of file diff --git a/lib/components/viewers/nearby/stop.tsx b/lib/components/viewers/nearby/stop.tsx index 7dbba62e0..de0ccc0f5 100644 --- a/lib/components/viewers/nearby/stop.tsx +++ b/lib/components/viewers/nearby/stop.tsx @@ -72,6 +72,7 @@ const Stop = ({ ) return ( { * viewer. */ const PatternRow = ({ + alwaysShowLongName, homeTimezone, pattern, roundedTop = true, @@ -101,6 +103,11 @@ const PatternRow = ({ /> + {alwaysShowLongName && !!pattern.route.longName && ( + + {pattern.route.longName} + + )} {extractHeadsignFromPattern(pattern) || (pattern.route.longName !== routeName && pattern.route.longName)} diff --git a/lib/util/config-types.ts b/lib/util/config-types.ts index e8008d9eb..8ee11a359 100644 --- a/lib/util/config-types.ts +++ b/lib/util/config-types.ts @@ -69,6 +69,7 @@ export type BugsnagConfig = ApiKeyConfig export type MapillaryConfig = ApiKeyConfig export type NearbyViewConfig = { + alwaysShowLongName?: boolean hideEmptyStops?: boolean radius?: number showShadowDotOnMapDrag?: boolean