ascetic_ddd.seedwork.domain.values.geolocation_coordinates

See https://developer.mozilla.org/en-US/docs/Web/API/GeolocationCoordinates.

Classes

GeolocationCoordinates(latitude, longitude)

IGeolocationCoordinatesExporter()

class ascetic_ddd.seedwork.domain.values.geolocation_coordinates.GeolocationCoordinates(latitude, longitude, altitude=None, accuracy=None, altitude_accuracy=None, heading=None, speed=None)[source]

Bases: object

Parameters:
latitude : Decimal

longitude : Decimal

altitude : Decimal | None

accuracy : Decimal | None

altitude_accuracy : Decimal | None

heading : Decimal | None

speed : Decimal | None

property point : Point
distance(location)[source]
Parameters:
location : Point

export(exporter)[source]
Return type:

None

Parameters:
exporter : IGeolocationCoordinatesExporter

class ascetic_ddd.seedwork.domain.values.geolocation_coordinates.IGeolocationCoordinatesExporter[source]

Bases: object

abstractmethod set_longitude(value)[source]
Return type:

None

Parameters:
value : Decimal

abstractmethod set_latitude(value)[source]
Return type:

None

Parameters:
value : Decimal

abstractmethod set_altitude(value)[source]
Return type:

None

Parameters:
value : Decimal | None

abstractmethod set_accuracy(value)[source]
Return type:

None

Parameters:
value : Decimal | None

abstractmethod set_altitude_accuracy(value)[source]
Return type:

None

Parameters:
value : Decimal | None

abstractmethod set_heading(value)[source]
Return type:

None

Parameters:
value : Decimal | None

abstractmethod set_speed(value)[source]
Return type:

None

Parameters:
value : Decimal | None