moved gtfs_constants.py to enhancer

This commit is contained in:
Csaba 2024-02-05 14:41:07 +01:00
parent baaa5ed005
commit 0f25f327cc
3 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,14 @@
# Constants
NO_BIKES_ALLOWED = 2
RIDESHARING_ROUTE_TYPE = 1551
CALENDAR_DATES_EXCEPTION_TYPE_ADDED = 1
CALENDAR_DATES_EXCEPTION_TYPE_REMOVED = 2
STOP_TIMES_STOP_TYPE_REGULARLY = 0
STOP_TIMES_STOP_TYPE_NONE = 1
STOP_TIMES_STOP_TYPE_PHONE_AGENCY = 2
STOP_TIMES_STOP_TYPE_COORDINATE_DRIVER = 3
STOP_TIMES_TIMEPOINT_APPROXIMATE = 0
STOP_TIMES_TIMEPOINT_EXACT = 1
MFDZ_DEFAULT_UNCERTAINITY = 600

View file

@ -11,7 +11,7 @@ from amarillo.utils.utils import assert_folder_exists
from amarillo.models.gtfs import GtfsTimeDelta, GtfsFeedInfo, GtfsAgency, GtfsRoute, GtfsStop, GtfsTrip, GtfsCalendar, GtfsCalendarDate, GtfsShape, GtfsDriver, GtfsAdditionalRidesharingInfo
from amarillo.models.Carpool import Driver, RidesharingInfo
from amarillo.services.stops import is_carpooling_stop
from amarillo.services.gtfs_constants import *
from amarillo.plugins.enhancer.services.gtfs_constants import *
from amarillo.utils.utils import geodesic_distance_in_m
from amarillo.plugins.enhancer.services.trips import Trip

View file

@ -1,6 +1,6 @@
from amarillo.models.gtfs import GtfsTimeDelta, GtfsStopTime
from amarillo.models.Carpool import MAX_STOPS_PER_TRIP, Carpool, Weekday, StopTime, PickupDropoffType
from amarillo.services.gtfs_constants import *
from amarillo.plugins.enhancer.services.gtfs_constants import *
from amarillo.services.routing import RoutingService, RoutingException
from amarillo.services.stops import is_carpooling_stop
from amarillo.utils.utils import assert_folder_exists, is_older_than_days, yesterday, geodesic_distance_in_m