product const added
This commit is contained in:
parent
c7b0649b50
commit
cf642fc00f
@ -29,4 +29,5 @@ from . import raw
|
||||
from . import errors
|
||||
from . import utility
|
||||
from . import classes
|
||||
from . import const
|
||||
from .methods import *
|
0
pyrmv/const/__init__.py
Normal file
0
pyrmv/const/__init__.py
Normal file
20
pyrmv/const/product.py
Normal file
20
pyrmv/const/product.py
Normal file
@ -0,0 +1,20 @@
|
||||
from typing import Dict
|
||||
|
||||
# Constant is taken from source of PyRMVtransport:
|
||||
# https://github.com/cgtobi/PyRMVtransport/blob/development/RMVtransport/const.py
|
||||
PRODUCTS: Dict[str, int] = {
|
||||
"ICE": 1,
|
||||
"IC": 2,
|
||||
"EC": 2,
|
||||
"R": 4,
|
||||
"RB": 4,
|
||||
"RE": 4,
|
||||
"S": 8,
|
||||
"U-Bahn": 16,
|
||||
"Tram": 32,
|
||||
"Bus": 64,
|
||||
"Bus2": 128,
|
||||
"Fähre": 256,
|
||||
"Taxi": 512,
|
||||
"Bahn": 1024,
|
||||
}
|
Loading…
Reference in New Issue
Block a user