DayOfWeek.<enum>
DayOfWeek days
Description
Class exposing the available DayOfWeek days as an enum (compatible with the Java side of PLANit).
Fields
<enum> Fields | Description | Instance documentation |
---|---|---|
MONDAY |
Represents a Monday | N/A |
TUESDAY |
Represents a Tuesday | N/A |
WEDNESDAY |
Represents a Wednesday | N/A |
THURSDAY |
Represents a Thursday | N/A |
FRIDAY |
Represents a Friday | N/A |
SATURDAY |
Represents a Saturday | N/A |
SUNDAY |
Represents a Sunday | N/A |
Example 1
from planit import *
planit = Planit()
#... other setup including osm_reader, and intermodal_converter
# GTFS reader
gtfs_reader: GtfsIntermodalReaderWrapper = \
intermodal_converter.create_reader(IntermodalReaderType.GTFS, AUSTRALIA, osm_reader)
gtfs_reader.settings.set_input_file(SYDNEY_GTFS_FILE_PATH)
# setting the day of week to filter to
gtfs_reader.settings.services_settings.day_of_week = DayOfWeek.THURSDAY
See also
N/A
Source code
Class DayOfWeek
in enums.py