San Francisco Muni
The type=route_master relations for each line (or type=route, for those that haven't be converted to the new scheme yet) are collected in the operator relation 2007571 2007571.
Tagging Conventions
Several years ago (User:Mart) had started to convert the Muni routes over to the new tagging conventions with a type=route_master relation for each line which in turn contains a type=route relation for each direction of the line.
Here are the conventions currently in use and documented here in the hope that we can achieve consistency in how the general tagging conventions are applied to Muni's services. These conventions are extensions of the general public transport tagging conventions.
Route Master Relations
Key | Value | Comment | Recommendation |
---|---|---|---|
type | route_master | - | mandatory |
route_master | light_rail for Muni Metro, tram for historic streetcar and cable car lines bus for diesel coach lines trolleybus for trolley coach lines |
Use tram=cable_car in addition for cable car lines | mandatory |
ref | Route letter or number | Do not include the route name here; For cable cars use the abbreviations Muni uses on the official muni map: PM, PH, C | mandatory |
name | Route number and name | The route number and name separated by a dash, or just the name for cable cars. Use spaces where Muni does. For example: 47-Van Ness, F-Market & Wharves, Powell-Mason | mandatory |
operator | Literally "San Francisco Municipal Railway" | - | mandatory |
network | Muni | - | mandatory |
colour | Color | Approximation of color used in muni's maps and on stops, as a HTML-style RGB triple like #ff00ff. If maps and stops disagree, prefer maps. | recommended |
These relations should have a member for each "normal" direction the line follows:
Element | Role | Recurrence? | Description |
---|---|---|---|
none | two or more | type=route for each "normal" direction of the line, but excluding short turns when vehicles enter/leave service Suggested guideline: include only directions that Muni considers significant enough to include on NextMuni. |
Route Relations
Key | Value | Comment | Recommendation |
---|---|---|---|
type | route | - | mandatory |
route | light_rail for Muni Metro, tram for historic streetcar and cable car lines, bus for diesel coach lines trolleybus for trolley coach lines |
Exactly as for the associated route master | mandatory |
ref | Route letter or number | Exactly as on the associated route master (duplicated for renderers that don't yet support route masters) | mandatory |
name | Route number and name followed by Inbound/Outbound designation | Use the Inbound/Outbound name designated by SFMTA, e.g. 22-Fillmore: Outbound to Potrero Hill | mandatory |
from | Name of start terminal | Use approximately the terminal names used on the bus headsigns, but abbreviated as described for stop names below | mandatory |
to | Name of destination terminal | Use approximately the terminal names used on the bus headsigns, but abbreviated as described for stop names below | mandatory |
operator | Literally "San Francisco Municipal Railway" | - | mandatory |
network | Muni | - | mandatory |
colour | Color | Exactly as on the associated route master (duplicated for renderers that don't yet support route masters) | recommended |
wheelchair | yes, no, limited | Mostly relevant for the rail lines, which are not all fully accessible. | recommended |
These relations should have a member for each way and stop that participates in this direction of service:
Element | Role | Recurrence? | Description |
---|---|---|---|
none | one or more | the highways or rails that are traversed in this direction of service, in the order they are traversed. | |
stop | one or more | the bus stops (highway=bus_stop) or platforms (public_transport=platform) where this bus can stop in this direction of service, in the order they are passed. |
Bus Stop and Station Names
There seems to be some sense of convention in how Muni names stops in the GTFS data and in NextBus, although there are often counter-examples which I assume arise from carelessness, and a different naming convention exists for the digital voice and sign used on the buses, presumably due to space constraints.
In the interests of consistency, the following naming conventions are suggested, based on what seems to be the intended convention used in Muni's GTFS data and NextBus:
- The name found on the actual station signage is preferred, if there is one. If a station has more than one name (common on T-Third stations) Only use the primary name in the name=* field, and add the secondary as an alt_name=*.
- Otherwise, follow the nature of the stop names used on NextBus and/or the GTFS feeds. That is, if Muni names it as a pair of streets follow that, whereas if it's named after a landmark or an address follow that.*If
- Use the following abbreviations, and do not include a period after them:
- "Avenue" as "Ave"
- "Street" as "St"
- "Boulevard" as "Blvd"
- "Alley" unabbreviated
- "Point" unabbreviated
- "Station" unabbreviated
- Abbreviate "Bay Area Rapid Transit" as "BART" and not as "B.A.R.T." or "Bart".
- Use "&" as the separator for a pair of streets. e.g. "North Point St & Stockton St"
- Include the appropriate street type abbreviation at the end of a street name. e.g. "Buchanan St" and not just "Buchanan".
- The names Muni uses for the stops that are the terminal of a line often don't match the names used on the headsign of that line; use the stop name for tagging the stop and use the headsign name (after applying the above style guidelines) on the from and to tags on the route relation.
Converting standalone routes to route master and directions
Several people created routes under the old scheme where all directions of service were included in a single route relation. Converting these is reasonably straightforward since the street ways are already split to accommodate the transit lines joining and leaving, we just need to make sure to follow the correct route where different streets are traveled in each direction.
Here's a process for converting which leaves the relation id of the original route intact as the new route master. To avoid confusing the map data during the conversion it's best to make submit these changes in a single changeset:
- Create a new route relation for each direction and add the ways in the order of travel. A direction should be a single connected path with no branches.
- Add any stops that already exist on the map to the appropriate direction relation.
- Change the type of the old route relation to "route_master".
- Rename the "route" key of the old route relation to "route_master".
- Remove all of the stops and ways from the route master relation.
- Add the direction relations to the route master relation.
The main "operator" relation for Muni is 2007571 2007571. This should contain all of the "route_master" relations shown below, and could also have added infrastructure and facilities maintained by Muni, such as the bus and train barns.
Muni Metro Routes, Cable Car Routes, Historic Street Car Routes
Bus Routes
Route | Status | Relation | Notes |
---|---|---|---|
1-California | Master: 2978570 2978570 |
||
1AX-California A Express | Relation not defined yet | ||
1BX-California B Express | Relation not defined yet | ||
2-Clement | Master: 2978594 2978594 |
||
3-Jackson | Master: 2980506 2980506 |
||
5-Fulton | Master: 2995940 2995940 |
||
6-Parnassus | Master: 331554 331554 |
||
8X-Bayshore Exp | Relation not defined yet | ||
8AX-Bayshore A Exp | Relation not defined yet | ||
8BX-Bayshore B Exp | Relation not defined yet | ||
9-San Bruno | Master: 2981259 2981259 |
||
9L-San Bruno Limited | Relation not defined yet | ||
10-Townsend | Master: 2981335 2981335 |
||
12-Folsom/Pacific | Master: 2996795 2996795 |
||
14-Mission | Master: 3000715 3000715 |
||
14L-Mission Limited | Relation not defined yet | ||
14X-Mission Express | Relation not defined yet | ||
16X-Noriega Express | Master: 3000879 3000879 |
||
17-Park Merced | Master: 3000939 3000939 |
||
18-46th Avenue | Master: 3001304 3001304 |
||
19-Polk | Master: 3001323 3001323 |
||
21-Hayes | Master: 3001343 3001343 |
||
22-Fillmore | Master: 63225 63225 |
||
23-Monterey | Master: 3002742 3002742 |
||
24-Divisadero | Master: 2996738 2996738 |
||
27-Bryant | Relation not defined yet | ||
28-19th Avenue | Relation not defined yet | ||
28L-19th Avenue Limited | Relation not defined yet | ||
29-Sunset | Relation not defined yet | ||
30-Stockton | 1945794 1945794 | Not yet converted to route_master | |
30X-Marina Express | Relation not defined yet | ||
31-Balboa | Relation not defined yet | ||
31AX-Balboa A Express | Relation not defined yet | ||
31BX-Balboa B Express | Relation not defined yet | ||
33-Stanyan | Relation not defined yet | ||
35-Eureka | Relation not defined yet | ||
36-Teresita | Relation not defined yet | ||
37-Corbett | Master: 1328322 1328322 |
||
38-Geary | Relation not defined yet | ||
38AX-Geary A Express | Relation not defined yet | ||
38BX-Geary B Express | Relation not defined yet | ||
38L-Geary Limited | Relation not defined yet | ||
39-Coit | Master: 2007116 2007116 |
||
41-Union | Relation not defined yet | ||
43-Masonic | Relation not defined yet | ||
44-O'Shaughnessy | Relation not defined yet | ||
45-Union/Stockton | 1945795 1945795 | Not yet converted to route_master | |
47-Van Ness | Master: 1946363 1946363 |
||
48-Quintara - 24th Street | Relation not defined yet | ||
49-Mission-Van Ness | Relation not defined yet | ||
52-Excelsior | Relation not defined yet | ||
54-Felton | Relation not defined yet | ||
56-Rutland | Relation not defined yet | ||
66-Quintara | Relation not defined yet | ||
67-Bernal Heights | Relation not defined yet | ||
71-Haight/Noriega | 331559 331559 | Not yet converted to route_master | |
71L-Haight-Noriega Limited | Relation not defined yet | ||
76-Marin Headlands | Relation not defined yet | ||
81X-Caltrain Express | Relation not defined yet | ||
82X-Levi Plaza Express | Relation not defined yet | ||
83X-Caltrain | Relation not defined yet | ||
88-BART Shuttle | Master: 2852276 2852276 |
||
90-San Bruno Owl | Relation not defined yet | ||
91-Owl | Relation not defined yet | ||
108-Treasure Island | Relation not defined yet | ||
K-Owl | Relation not defined yet | ||
L-Owl | Relation not defined yet | ||
M-Owl | Relation not defined yet | ||
N-Owl | Relation not defined yet | ||
NX-N Judah Express | Relation not defined yet | ||
T-Owl | Relation not defined yet |