JavaScript library for working with GTFS data.
- gtfsx
- conversionUtils
Module converting between object types.
- Datafile
- Agency
Module converting between object types.
Converts a number representing a date returned from GTFS-Exchange into a Date object.
Kind: static method of conversionUtils
Returns: Date
- - The date equivalent of the input number.
Param | Type | Description |
---|---|---|
n | number | Date |
A number representing a date. If a date is passed in, that same date is returned. |
- Datafile
- Datafile ⏏
- new Datafile(data)
- ~description :
string
- ~md5sum :
string
- ~file_url :
string
- ~agencies :
string
- ~filename :
string
- ~date_added :
Date
- ~uploaded_by_user :
string
- ~size :
number
- Datafile ⏏
Represents an element of the datafile array returned from the API endpoint http://www.gtfs-data-exchange.com/api/agency?agency={dataexchange_id}.
Param | Type | Description |
---|---|---|
data | Object |
Values to populate this object's parameters. |
Kind: inner property of Datafile
Kind: inner property of Datafile
Kind: inner property of Datafile
Kind: inner property of Datafile
Kind: inner property of Datafile
Example
"abq-ride_20120904_0303.zip"
Kind: inner property of Datafile
Kind: inner property of Datafile
Kind: inner property of Datafile
- Agency
- Agency ⏏
- new Agency(data, datafiles)
- static
- .groupByArea(agencies) ⇒
Object.<string, Array.<Agency>>
- .groupByArea(agencies) ⇒
- inner
- ~dataexchange_id :
string
- ~feed_baseurl :
string
- ~name :
string
- ~area :
string
- ~url :
string
- ~country :
string
- ~state :
string
- ~license_url :
string
- ~dataexchange_url :
string
- ~date_added :
Date
- ~date_last_updated :
Date
- ~is_official :
boolean
- ~datafiles :
Array.<DataFile>
- ~latestFeedUrl :
string
- ~dataexchange_id :
- Agency ⏏
An object representing an agency that publishes GTFS data to GTFS-Exchange.
Param | Type | Description |
---|---|---|
data | Object |
Data corresponding to class's properties. |
datafiles | Object.<string, object> |
An array of DataFile objects. |
Group an array of agencies by area.
Kind: static method of Agency
Returns: Object.<string, Array.<Agency>>
- - Arrays of agencies grouped by area.
Param | Type | Description |
---|---|---|
agencies | Array.<Agency> |
An array of agencies. |
Kind: inner property of Agency
Kind: inner property of Agency
Kind: inner property of Agency
Kind: inner property of Agency
Kind: inner property of Agency
Kind: inner property of Agency
Kind: inner property of Agency
Kind: inner property of Agency
Kind: inner property of Agency
Kind: inner property of Agency
Kind: inner property of Agency
Kind: inner property of Agency
Kind: inner property of Agency
URL for the most current GTFS ZIP file
Kind: inner property of Agency