Directory abstraction for discovering internet-radio stations.
More...
|
| tuple[StreamingRadioStation,...] | search (self, str query, *, int limit=20) |
| | Find stations whose names match a user query.
|
| tuple[StreamingRadioStation,...] | stations_by_ids (self, tuple[str,...] station_ids) |
| | Resolve stable directory identifiers to current station metadata.
|
| tuple[StreamingRadioStation,...] | stations_by_region (self, *, str state, str country_code="US", int limit=50) |
| | Return healthy stations for a state or regional label.
|
| tuple[StreamingRadioStation,...] | stations_near (self, *, float latitude, float longitude, float radius_km, str state, str country_code="US", int limit=50) |
| | Return stations near a position with regional fallback.
|
Directory abstraction for discovering internet-radio stations.
◆ search()
| tuple[StreamingRadioStation, ...] radio.streaming_radio_directory_if.StreamingRadioDirectoryIf.search |
( |
| self, |
|
|
str | query, |
|
|
* | , |
|
|
int | limit = 20 ) |
Find stations whose names match a user query.
- Parameters
-
| query | User-entered station search text. |
| limit | Maximum number of stations to return. |
- Returns
- Matching stations in directory-defined order.
◆ stations_by_ids()
| tuple[StreamingRadioStation, ...] radio.streaming_radio_directory_if.StreamingRadioDirectoryIf.stations_by_ids |
( |
| self, |
|
|
tuple[str, ...] | station_ids ) |
Resolve stable directory identifiers to current station metadata.
- Parameters
-
| station_ids | Stable directory station identifiers to resolve. |
- Returns
- Resolved stations in the requested identifier order when available.
◆ stations_by_region()
| tuple[StreamingRadioStation, ...] radio.streaming_radio_directory_if.StreamingRadioDirectoryIf.stations_by_region |
( |
| self, |
|
|
* | , |
|
|
str | state, |
|
|
str | country_code = "US", |
|
|
int | limit = 50 ) |
Return healthy stations for a state or regional label.
- Parameters
-
| state | State or regional label used to constrain discovery. |
| country_code | ISO-style country code used to constrain discovery. |
| limit | Maximum number of stations to return. |
- Returns
- Healthy stations matching the requested region.
◆ stations_near()
| tuple[StreamingRadioStation, ...] radio.streaming_radio_directory_if.StreamingRadioDirectoryIf.stations_near |
( |
| self, |
|
|
* | , |
|
|
float | latitude, |
|
|
float | longitude, |
|
|
float | radius_km, |
|
|
str | state, |
|
|
str | country_code = "US", |
|
|
int | limit = 50 ) |
Return stations near a position with regional fallback.
- Parameters
-
| latitude | Latitude of the discovery origin in degrees. |
| longitude | Longitude of the discovery origin in degrees. |
| radius_km | Search radius in kilometers. |
| state | State or regional fallback label for stations missing geo metadata. |
| country_code | ISO-style country code used to constrain discovery. |
| limit | Maximum number of stations to return. |
- Returns
- Nearby stations plus regional fallback stations when appropriate.
The documentation for this class was generated from the following file:
- controllers/radio/streaming_radio_directory_if.py