new Route( id, shortName, longName, type [, optional ] )

Description

GTFS Route

Representation of the GTFS Route definition.

GTFS Required Fields:

  • Route ID
  • Route Short Name
  • Route Long Name
  • Route Type

GTFS Optional Fields:

  • Route Agency
  • Route Description
  • Route URL
  • Route Color
  • Route Text Color
  • Route Sort Order

Module: gtfs/Route

Parameters
Name Type Attributes Description
id string

Route ID

shortName string

Route Short Name

longName string

Route Long Name

type int

Route Type

optional Object <optional>

Optional Arguments

Name Type Attributes Default Description
agency Agency <optional>

Route Agency

description string <optional>

Route Description

url string <optional>

Route Website URL

color string <optional>
ffffff

Route Color

textColor string <optional>
000000

Route Text Color

sortOrder int <optional>

Route Sort Order

Details

Members


id :String

Description

Unique ID that identifies a route

Details
String

shortName :string

Description

The short name of a route

Details
string

longName :string

Description

The full name of a route

Details
string

type :int

Description

The type of transportation used on a route

Details
int

agency :Agency

Description

The parent Agency of the route

Details

description :string

Description

Description of the Route

Details
string

url :string

Description

Route website URL

Details
string

color :string

Description

The color that corresponds to the route and represented as a six-figure hexadecimal number (without the leading '#')

Details
string

ffffff


textColor :string

Description

The text color that corresponds to the route's color as a six-figure hexadecimal number (without the leading '#')

Details
string

000000


sortOrder :int

Description

Field used for sorting the display of Routes

Details
int

Methods


<static> sortByName( a, b ) → {number}

Description

Sort Route by Name (ascending)

Parameters
Name Type Description
a Route

first Route

b Route

second Route

Returns

compare integer

Details