"""Configuration constants for journey times processing."""

from .models import Destination

MAX_DELAY = 10
REQUESTS_PER_MIN = 500
MAX_POSTCODES = None
MAX_CONCURRENT = 80
MAX_DISTANCE_KM = 110
CHECKPOINT_INTERVAL = 10000


DESTINATIONS = {
    "bank": Destination(51.5133, -0.0886, "Bank", "940GZZLUBNK"),
    "waterloo": Destination(51.5031, -0.1132, "Waterloo", "940GZZLUWLO"),
    "kings-cross": Destination(51.5308, -0.1238, "King's Cross", "940GZZLUKSX"),
    "liverpool-street": Destination(
        51.5178, -0.0823, "Liverpool Street", "940GZZLULVS"
    ),
    "paddington": Destination(51.5154, -0.1755, "Paddington", "940GZZLUPAC"),
    "victoria": Destination(51.4965, -0.1447, "Victoria", "940GZZLUVIC"),
    "fitzrovia": Destination(51.5165, -0.1310, "Fitzrovia", "940GZZLUTCR"),
}
