Exporting station locations to KML?

I understand (and much appreciate) that true station locations are obscured for privacy reasons, but is there a direct way to obtain/export/convert those obscured lat/lon values into KML values? My goal is to compare/correlate activities from my RS&B’s sensor location against other sensors that may be in my region (or wider), and have the flexibility to overlay them with different types of sensor geo data into something like GoogleEarth. Thank you in advance for considering this question. Regards…mpan

The hardest part is getting the coords of the stations, I don’t know of any easy way other than selecting it in StationView and picking the coords out of the URL.

Once you have that, You can create a KML file using this info:

KML files are XML files, as simple one looks like:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
    <name>Simple placemark</name>
    <description>Attached to the ground. Intelligently places itself 
       at the height of the underlying terrain.</description>
1 Like

You can use IRIS gmap: setting up network as AM and the start time as of today (to get only online stations) and you can also use the Location Box/Radius to define your area.
If you scroll down in the left menu there is the “Download Stations” box and you can choose the format as KML or TEXT.

However I don’t know if this stations have the exact position.

1 Like

Thank you, PhilipPeake…this is how I’ve been doing it; was hoping for a less-cumbersome (i.e., “Easy Button”) way than scraping/parsing the URL.

YacineB…thank you! I was not aware of IRIS gmap (still quite new to all of this). The geographic boundary feature is especially useful. This utility is a great find!


FYI: The IRIS tool appears to return the offset position (not the true position).

One other way to get the entire list … It’s what StationView uses to pull all the station data (I wouldn’t hammer that API too much … jusy use curl and dump it into a file:


It’s JSON, so you might want to format it (or not…). On Linux, the easiest way would be:

curl https://api.raspberryshake.org/v1/stations | jq . > station-list.json