openworld_radio_twin.providers.local_antennas#

Antennas from a user-supplied GeoJSON or CSV file, such as one’s own network layout.

GeoJSON is a FeatureCollection of Point features whose properties use the names of AntennaFeature: id is required; site_id, operator, plmn, radios (or radio), height_agl_m, azimuth_deg, downtilt_deg, power_dbm and bands (a list of {"label", "low_mhz", "high_mhz"}) are optional. CSV has one row per antenna with id, latitude, longitude, the same optional columns, and band_label, band_low_mhz and band_high_mhz for one band. The file’s SHA-256 enters the source identity.

Functions

configuration_identity(settings)

configured(settings)

parse_antenna_file(content, suffix, release)

Antenna records of a GeoJSON or CSV file; errors name the offending entry.

Classes

LocalAntennaProvider(settings, client)

openworld_radio_twin.providers.local_antennas.configured(settings)[source]#
Return type:

bool

openworld_radio_twin.providers.local_antennas.configuration_identity(settings)[source]#
Return type:

dict[str, str]

openworld_radio_twin.providers.local_antennas.parse_antenna_file(content, suffix, release)[source]#

Antenna records of a GeoJSON or CSV file; errors name the offending entry.

Return type:

list[AntennaFeature]

class openworld_radio_twin.providers.local_antennas.LocalAntennaProvider(settings, client)[source]#

Bases: object

async antennas(latitude, longitude, radius_m)[source]#
Return type:

AntennaQueryResult