UNPKG

node-oc-transpo

Version:

A Node.js library for the OC Transpo API

24 lines (21 loc) 503 B
const version = "v1.2"; const baseUrl = "api.octranspo1.com"; const endUrls = { getRouteSummaryForStop: "GetRouteSummaryForStop", getNextTripsForStop: "GetNextTripsForStop", getNextTripsForStopAllRoutes: "GetNextTripsForStopAllRoutes", gtfs: "Gtfs" }; const errors = { 1: "Invalid API key", 2: "Unable to query data source", 10: "Invalid stop number", 11: "Invalid route number", 12: "Stop does not service route" }; module.exports = { version, baseUrl, endUrls, errors };