flexmeasures.data.schemas.locations

Classes

class flexmeasures.data.schemas.locations.LatitudeField(*args, **kwargs)

Field that deserializes to a latitude float with max 7 decimal places.

__init__(*args, **kwargs)
class flexmeasures.data.schemas.locations.LatitudeLongitudeValidator(*, error: str | None = None)

Validator which succeeds if the value passed has at most 7 decimal places.

__init__(*, error: str | None = None)
class flexmeasures.data.schemas.locations.LatitudeValidator(*, error: str | None = None, allow_none: bool = False)

Validator which succeeds if the value passed is in the range [-90, 90].

__init__(*, error: str | None = None, allow_none: bool = False)
class flexmeasures.data.schemas.locations.LongitudeField(*args, **kwargs)

Field that deserializes to a longitude float with max 7 decimal places.

__init__(*args, **kwargs)
class flexmeasures.data.schemas.locations.LongitudeValidator(*, error: str | None = None, allow_none: bool = False)

Validator which succeeds if the value passed is in the range [-180, 180].

__init__(*, error: str | None = None, allow_none: bool = False)