openworld_radio_twin.providers.anfr#

The ANFR register of radio installations above 5 W, France and its overseas territories.

ANFR publishes the register monthly on data.gouv.fr under Licence Ouverte 2.0 as linked tables of stations, supports, antennas, emitters and frequency bands. The adapter keeps antennas that carry at least one mobile emitter in service (GSM, UMTS, LTE, 5G NR), and drops antennas indoors, underground or in tunnels, which a street-level scene does not contain. It records the support position, the antenna’s height above ground, its azimuth when it radiates directionally, its operator and the registered frequency bands. The register gives no tilt, power or antenna pattern; placement fills those from the defaults.

The latest export is found through the data.gouv.fr dataset API, downloaded once and converted to a local point index pinned by its export date and SHA-256.

Functions

antenna_records(table, release)

latest_export(client)

Export date and the data and reference archive URLs of the newest complete export.

read_export(data_path, reference_path)

Outdoor antennas with a mobile emitter in service, one row per antenna.

snapshot_directory(settings)

Classes

AnfrProvider(settings, client)

openworld_radio_twin.providers.anfr.snapshot_directory(settings)[source]#
Return type:

Path

openworld_radio_twin.providers.anfr.read_export(data_path, reference_path)[source]#

Outdoor antennas with a mobile emitter in service, one row per antenna.

Return type:

tuple[Table, dict[str, int]]

openworld_radio_twin.providers.anfr.antenna_records(table, release)[source]#
Return type:

list[AntennaFeature]

async openworld_radio_twin.providers.anfr.latest_export(client)[source]#

Export date and the data and reference archive URLs of the newest complete export.

Return type:

tuple[str, str, str]

class openworld_radio_twin.providers.anfr.AnfrProvider(settings, client)[source]#

Bases: object

async snapshot(*, refresh=False)[source]#

The installed snapshot; downloads the latest export first when none is installed.

Return type:

Snapshot

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

AntennaQueryResult