-
Notifications
You must be signed in to change notification settings - Fork 23
Description
I've been enjoying my RadioGlobe for the past 8 months with about 10,000 loaded stations but I was always bothered by annoying dead-zones here and there. Therefore, I wanted to try to incorporate all of the stations listed on the RadioGarden website since this is a vast collection of streaming sites. Over a few weeks I worked on this goal and I've gotten the station.json file to the point where I'm willing to share it. The process was as follows:
- Radiogarden lists stations in cities with a "places" code of which there are about 12,500 of them. The "places" codes were able to be collected here: http://radio.garden/api/ara/content/places
- Using a script, I was able to examine each "places" code using a prefix, and collect all radio stations within that place. This step resulted with over 150,000 stations...but only returned the "station" code...not the actual streaming website URL. Getting the actual URLs took another step. The 150,000 number is a bit misleading...many stations are used in multiple location (eg. BBC World Service). There are at least 27,940 distinct stations in this new list.
- Examine all 12,500 cities and determine their lat/lon coordinates...save to a table.
- Using another script I was able to look at each individual station code website and see where it 304 re-directed...then save this URL.
- Use another script to create a database which combines the data from steps 4 & 5.
- Another script to identify the 2-digit standardized country code and apply to the end of each city name appropriately. Some mistakes happened here which I'm still working to fix. Many cities around the world use the same city name and the script made some errors. I'm trying to create another script to look at the lat/lon coords and correlate that the country code is correct...still INW.
- Clean up the data, remove non-US characters, shorten station titles to 16-characters, etc, etc.
The station list works fine, although it does create a few new problems. Because now there are so many cities, it becomes difficult to tune to a specific city and instead the globe will "snap" to a nearby city. Adjusting the snap distance would work, but make it overly sensitive. I would like to implement a new "city select" function which might help with this. The user should be able to use the jog wheel to move through nearby cities. More to come on this function.
Also, I have had a few lock-ups of the RadioGlobe here and there where the screen will not respond and the globe won't move to a new station (although it will continue playing the current station). This may be related to the code having an issue with too many stations in one place but this is only a theory.
-John
stations.json