transport-accessibility/transport_accessibility/pt_map/class_names.py

139 lines
5.2 KiB
Python

"""
Constant defining different variation of the file names in GTFS / our model names, mapped to corresponding models.
"""
import pt_map.models
class_names = [
{
"Agency": pt_map.models.Agency,
"Stop": pt_map.models.Stop,
"Route": pt_map.models.Route,
"Trip": pt_map.models.Trip,
"StopTime": pt_map.models.StopTime,
"Calendar": pt_map.models.Calendar,
"CalendarDate": pt_map.models.CalendarDate,
"FareAttribute": pt_map.models.FareAttribute,
"FareRule": pt_map.models.FareRule,
"Timeframe": pt_map.models.Timeframe,
"FareMedium": pt_map.models.FareMedium,
"FareProduct": pt_map.models.FareProduct,
"FareLegRule": pt_map.models.FareLegRule,
"FareTransferRule": pt_map.models.FareTransferRule,
"Area": pt_map.models.Area,
"StopArea": pt_map.models.StopArea,
"Network": pt_map.models.Network,
"RouteNetwork": pt_map.models.RouteNetwork,
"Shape": pt_map.models.Shape,
"Frequency": pt_map.models.Frequency,
"Transfer": pt_map.models.Transfer,
"Pathway": pt_map.models.Pathway,
"Level": pt_map.models.Level,
"LocationGroup": pt_map.models.LocationGroup,
"LocationGroupStop": pt_map.models.LocationGroupStop,
"LocationsGeojson": pt_map.models.LocationsGeojson,
"BookingRule": pt_map.models.BookingRule,
"Translation": pt_map.models.Translation,
"FeedInfo": pt_map.models.FeedInfo,
"Attribution": pt_map.models.Attribution,
},
{
"agencies": pt_map.models.Agency,
"stops": pt_map.models.Stop,
"routes": pt_map.models.Route,
"trips": pt_map.models.Trip,
"stop_times": pt_map.models.StopTime,
"calendars": pt_map.models.Calendar,
"calendar_dates": pt_map.models.CalendarDate,
"fare_attributes": pt_map.models.FareAttribute,
"fare_rules": pt_map.models.FareRule,
"timeframes": pt_map.models.Timeframe,
"fare_mediums": pt_map.models.FareMedium,
"fare_products": pt_map.models.FareProduct,
"fare_leg_rules": pt_map.models.FareLegRule,
"fare_transfer_rules": pt_map.models.FareTransferRule,
"areas": pt_map.models.Area,
"stop_areas": pt_map.models.StopArea,
"networks": pt_map.models.Network,
"route_networks": pt_map.models.RouteNetwork,
"shapes": pt_map.models.Shape,
"frequencies": pt_map.models.Frequency,
"transfers": pt_map.models.Transfer,
"pathways": pt_map.models.Pathway,
"levels": pt_map.models.Level,
"location_groups": pt_map.models.LocationGroup,
"location_group_stops": pt_map.models.LocationGroupStop,
"locations": pt_map.models.LocationsGeojson,
"booking_rules": pt_map.models.BookingRule,
"translations": pt_map.models.Translation,
"feed_info": pt_map.models.FeedInfo,
"attributions": pt_map.models.Attribution,
},
{
pt_map.models.Agency: "Agency",
pt_map.models.Stop: "Stop",
pt_map.models.Route: "Route",
pt_map.models.Trip: "Trip",
pt_map.models.StopTime: "StopTime",
pt_map.models.Calendar: "Calendar",
pt_map.models.CalendarDate: "CalendarDate",
pt_map.models.FareAttribute: "FareAttribute",
pt_map.models.FareRule: "FareRule",
pt_map.models.Timeframe: "Timeframe",
pt_map.models.FareMedium: "FareMedium",
pt_map.models.FareProduct: "FareProduct",
pt_map.models.FareLegRule: "FareLegRule",
pt_map.models.FareTransferRule: "FareTransferRule",
pt_map.models.Area: "Area",
pt_map.models.StopArea: "StopArea",
pt_map.models.Network: "Network",
pt_map.models.RouteNetwork: "RouteNetwork",
pt_map.models.Shape: "Shape",
pt_map.models.Frequency: "Frequency",
pt_map.models.Transfer: "Transfer",
pt_map.models.Pathway: "Pathway",
pt_map.models.Level: "Level",
pt_map.models.LocationGroup: "LocationGroup",
pt_map.models.LocationGroupStop: "LocationGroupStop",
pt_map.models.LocationsGeojson: "LocationsGeojson",
pt_map.models.BookingRule: "BookingRule",
pt_map.models.Translation: "Translation",
pt_map.models.FeedInfo: "FeedInfo",
pt_map.models.Attribution: "Attribution",
},
{
pt_map.models.Agency: "agencies",
pt_map.models.Stop: "stops",
pt_map.models.Route: "routes",
pt_map.models.Trip: "trips",
pt_map.models.StopTime: "stop_times",
pt_map.models.Calendar: "calendars",
pt_map.models.CalendarDate: "calendar_dates",
pt_map.models.FareAttribute: "fare_attributes",
pt_map.models.FareRule: "fare_rules",
pt_map.models.Timeframe: "timeframes",
pt_map.models.FareMedium: "fare_mediums",
pt_map.models.FareProduct: "fare_products",
pt_map.models.FareLegRule: "fare_leg_rules",
pt_map.models.FareTransferRule: "fare_transfer_rules",
pt_map.models.Area: "areas",
pt_map.models.StopArea: "stop_areas",
pt_map.models.Network: "networks",
pt_map.models.RouteNetwork: "route_networks",
pt_map.models.Shape: "shapes",
pt_map.models.Frequency: "frequencies",
pt_map.models.Transfer: "transfers",
pt_map.models.Pathway: "pathways",
pt_map.models.Level: "levels",
pt_map.models.LocationGroup: "location_groups",
pt_map.models.LocationGroupStop: "location_group_stops",
pt_map.models.LocationsGeojson: "locations",
pt_map.models.BookingRule: "booking_rules",
pt_map.models.Translation: "translations",
pt_map.models.FeedInfo: "feed_info",
pt_map.models.Attribution: "attributions",
},
]