2023-01-08 12:22:36 +00:00
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
class Vehicle:
|
|
|
|
"""What type of vehicle is going on the ferry."""
|
|
|
|
|
|
|
|
type: str
|
|
|
|
registration: str
|
|
|
|
height: int
|
|
|
|
length: int
|
|
|
|
|
|
|
|
|
|
|
|
ports = {
|
|
|
|
"PORTSMOUTH": "GBPME",
|
|
|
|
"PLYMOUTH": "GBPLY",
|
|
|
|
"POOLE": "GBPOO",
|
|
|
|
"CAEN": "FROUI",
|
|
|
|
"CHERBOURG": "FRCER",
|
|
|
|
"ST MALO": "FRSML",
|
2023-04-16 19:53:42 +01:00
|
|
|
"LE HAVRE": "FRLEH",
|
2023-09-11 07:00:20 +01:00
|
|
|
"ROSCOFF": "FRROS",
|
2023-01-08 12:22:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
port_lookup = {code: name for name, code in ports.items()}
|