mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-08-14 16:37:33 +00:00
29 lines
1020 B
Python
29 lines
1020 B
Python
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class SIGRef:
|
|
"""Data class that defines a Special Interest Group "info" or reference. As well as the basic reference ID we include a
|
|
name and a lookup URL."""
|
|
|
|
# Reference ID, e.g. "GB-0001".
|
|
id: str
|
|
# SIG that this reference is in, e.g. "POTA".
|
|
sig: str
|
|
# Name of the reference, e.g. "Null Country Park", if known.
|
|
name: str | None = None
|
|
# Type of the reference, e.g. "Park", if known.
|
|
type: str | None = None
|
|
# URL to look up more information about the reference, if known.
|
|
url: str | None = None
|
|
# Latitude of the reference, in degrees, if known.
|
|
latitude: float | None = None
|
|
# Longitude of the reference, in degrees, if known.
|
|
longitude: float | None = None
|
|
# Altitude of the reference, in metres, if known.
|
|
altitude: float | None = None
|
|
# Maidenhead grid ref of the reference, if known.
|
|
grid: str | None = None
|
|
# Activation score. SOTA only
|
|
activation_score: int | None = None
|