routes.md

October 4, 2015 ยท View on GitHub

Transit Routes

  • Filename MUST be routes.txt
  • File MUST contain a record for every transit route (i.e. the Muni 14 Local)
  • File MUST be a valid CSV file.
  • The first line of each file MUST contain case-sensitive field names.
  • Field names MUST NOT contain tabs, carriage returns or new lines.

File MUST contain the following attributes:

Required AttributesDescription
route_idID that uniquely identifies a route
route_short_nameShort name of route
route_long_nameLong name of route
route_typeService Type:
  •   			|    *0 - Tram, streetcar, light rail*
    
  •   			|    *1 - Subway, metro*
    
  •   			|    *2 - Rail*
    
  •   			|    *3 - Bus*
    
  •   			|    *4 - Ferry*
    
  •   			|    *5 - Cable car*
    
  •   			|    *6 - Gondola*
    
  •   			|    *7 - Funicular*
    

File MAY contain the following attributes:

Optional AttributesDescription
agency_idID that uniquely identifies an agency in agency.txt
route_descDescription of route.
route_urlWebpage for route.
route_colorDisplay color for route in six digit hexadecimal
route_text_colorColor of text to be drawn on top of route color, specified in six digit hexadecimal