Skip to content

Locations

albert.resources.locations

Location

Bases: BaseResource

A location in Albert.

Attributes:

Name Type Description
name str

The name of the location.

id str | None

The Albert ID of the location. Set when the location is retrieved from Albert.

latitude float

The latitude of the location.

longitude float

The longitude of the location.

address str

The address of the location.

country str | None

The country code of the location. Must be two characters long.

name

name: str

id

id: str | None = Field(None, alias='albertId')

latitude

latitude: float = Field()

longitude

longitude: float = Field()

address

address: str

country

country: str | None = Field(
    None, max_length=2, min_length=2
)