Axione-IPE-Viewer/webapp/ipe_fetcher/model.py

33 lines
663 B
Python
Raw Permalink Normal View History

2022-12-09 12:01:55 +01:00
from typing_extensions import NotRequired, TypedDict
2022-03-14 21:58:52 +01:00
2022-03-14 22:05:44 +01:00
class FAIEligibilityStatus(TypedDict):
2022-03-14 21:58:52 +01:00
isEligible: bool
ftthStatus: str
2022-03-14 22:05:44 +01:00
reasonNotEligible: str
2022-12-09 12:01:55 +01:00
dateCommandable: NotRequired[str]
2022-03-14 22:05:44 +01:00
2022-03-14 21:58:52 +01:00
class Building(TypedDict):
x: str
y: str
idImm: str
numVoieImm: str
typeVoieImm: str
nomVoieImm: str
2022-04-12 23:17:40 +02:00
codePostal: str
commune: str
2022-04-12 20:39:33 +02:00
bat_info: str
2022-04-12 23:17:40 +02:00
found_in: list[str]
etat_imm_priority: int = 10
2022-03-14 22:05:44 +01:00
aquilenetEligStatus: FAIEligibilityStatus
2022-04-12 20:39:33 +02:00
fdnEligStatus: FAIEligibilityStatus
2022-03-14 22:05:44 +01:00
othersEligStatus: FAIEligibilityStatus
2022-03-23 22:54:04 +01:00
class AreaCoordinates(TypedDict):
swx: float
swy: float
nex: float
ney: float