openworld_radio_twin.providers.osm#

Classes

CacheEntry(expires_at, value)

OsmProvider(settings, client)

Fetches only the active area from public OSM services and caches it in memory.

class openworld_radio_twin.providers.osm.CacheEntry(expires_at, value)[source]#

Bases: object

expires_at: float#
value: object#
class openworld_radio_twin.providers.osm.OsmProvider(settings, client)[source]#

Bases: object

Fetches only the active area from public OSM services and caches it in memory.

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

list[SearchResult]

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

list[BuildingFeature]