moved gtfs_constants.py to enhancer
This commit is contained in:
parent
7ded4838a7
commit
cddff3aea2
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
|
||||||
|
|
@ -10,7 +10,7 @@ import re
|
||||||
from amarillo.utils.utils import assert_folder_exists
|
from amarillo.utils.utils import assert_folder_exists
|
||||||
from amarillo.models.gtfs import GtfsTimeDelta, GtfsFeedInfo, GtfsAgency, GtfsRoute, GtfsStop, GtfsStopTime, GtfsTrip, GtfsCalendar, GtfsCalendarDate, GtfsShape
|
from amarillo.models.gtfs import GtfsTimeDelta, GtfsFeedInfo, GtfsAgency, GtfsRoute, GtfsStop, GtfsStopTime, GtfsTrip, GtfsCalendar, GtfsCalendarDate, GtfsShape
|
||||||
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 *
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
|
||||||
|
|
@ -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