polaris.network.transit.transit_elements.Service#
- class polaris.network.transit.transit_elements.Service#
Bases:
object
Transit service built with data from calendar.txt and calendar_dates.txt from GTFS
- Database class members:
service_id (
str
):monday (
int
): Flag if the route runs on mondays (1 for True, 0 for False)tuesday (
int
): Flag if the route runs on tuesdays (1 for True, 0 for False)wednesday (
int
): Flag if the route runs on wednesdays (1 for True, 0 for False)thursday (
int
): Flag if the route runs on thursdays (1 for True, 0 for False)friday (
int
): Flag if the route runs on fridays (1 for True, 0 for False)saturday (
int
): Flag if the route runs on saturdays (1 for True, 0 for False)sunday (
int
): Flag if the route runs on sundays (1 for True, 0 for False)start_date (
str
): Start date for this serviceend_date (
str
): End date for this servicedates (
List[str]
): List of all dates for which this service is active between its start and end dates
- __init__() None #
Methods
__init__
()- __init__() None #