openworld_radio_twin.providers.map_data#

Classes

MapDataProvider(settings, client, *[, ...])

Coordinates search and building providers with one explicit fallback policy.

class openworld_radio_twin.providers.map_data.MapDataProvider(settings, client, *, building_sources=None)[source]#

Bases: object

Coordinates search and building providers with one explicit fallback policy.

async search(query, limit=5)[source]#
Return type:

list[SearchResult]

async buildings(latitude, longitude, radius_m, limit, source='auto')[source]#
Return type:

BuildingQueryResult

async environment(latitude, longitude, radius_m, spacing_m, include_surfaces, terrain_mode='elevation')[source]#

Return the terrain grid and, when requested, the surface classes on it.

terrain_mode="elevation" samples the DEM providers. terrain_mode="flat" synthesizes a planar grid at local z=0 without querying any elevation source, so surface classes can still be assigned per cell; water bodies then lie in the plane and are represented by their material only.

Return type:

tuple[EnvironmentData, list[str]]