🎉 First commit !!!
This commit is contained in:
25
backend/idfm_matrix_backend/schemas/stop.py
Normal file
25
backend/idfm_matrix_backend/schemas/stop.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
from ..idfm_interface import IdfmLineState, IdfmState, StopAreaType, TransportMode
|
||||
|
||||
|
||||
class Stop(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
town: str
|
||||
lat: float
|
||||
lon: float
|
||||
# xepsg2154: int
|
||||
# yepsg2154: int
|
||||
lines: list[str]
|
||||
|
||||
|
||||
class StopArea(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
town: str
|
||||
# xepsg2154: int
|
||||
# yepsg2154: int
|
||||
type: StopAreaType
|
||||
lines: list[str] # SNCF lines are linked to stop areas and not stops.
|
||||
stops: list[Stop]
|
Reference in New Issue
Block a user