moved gtfs_constants.py to enhancer
This commit is contained in:
parent
baaa5ed005
commit
0f25f327cc
14
amarillo/plugins/enhancer/services/gtfs_constants.py
Normal file
14
amarillo/plugins/enhancer/services/gtfs_constants.py
Normal 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
|
||||||
|
|
@ -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.gtfs import GtfsTimeDelta, GtfsFeedInfo, GtfsAgency, GtfsRoute, GtfsStop, GtfsTrip, GtfsCalendar, GtfsCalendarDate, GtfsShape, GtfsDriver, GtfsAdditionalRidesharingInfo
|
||||||
from amarillo.models.Carpool import Driver, RidesharingInfo
|
from amarillo.models.Carpool import Driver, RidesharingInfo
|
||||||
from amarillo.services.stops import is_carpooling_stop
|
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.utils.utils import geodesic_distance_in_m
|
||||||
|
|
||||||
from amarillo.plugins.enhancer.services.trips import Trip
|
from amarillo.plugins.enhancer.services.trips import Trip
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from amarillo.models.gtfs import GtfsTimeDelta, GtfsStopTime
|
from amarillo.models.gtfs import GtfsTimeDelta, GtfsStopTime
|
||||||
from amarillo.models.Carpool import MAX_STOPS_PER_TRIP, Carpool, Weekday, StopTime, PickupDropoffType
|
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.routing import RoutingService, RoutingException
|
||||||
from amarillo.services.stops import is_carpooling_stop
|
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
|
from amarillo.utils.utils import assert_folder_exists, is_older_than_days, yesterday, geodesic_distance_in_m
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue