TransitFeed

TransitFeed

Transit Feed

A real-time status information feed provided by a third-party Transit Agency.

The Transit Feed contains a list of Transit Divisions A Transit Division contains a list of Transit Lines A Transit Line contains a list of Transit Events A Transit Event contains the status and details of an event.

Constructor

new TransitFeed(updatedopt)

Source:

Create a new Transit Feed

Parameters:
Name Type Attributes Description
updated Date <optional>

The Date/Time when the feed was last updated

Members

divisions :Array.<TransitDivision>

Source:

List of Transit Divisions for this Feed

Type:

updated :Date

Source:

The Date/Time when the feed was last updated

Type:
  • Date

Methods

getEventCount() → {number}

Source:

Get the number of Transit Events for this Feed

Returns:
Type
number