Thought I share this recipe. Finding bike parking isn't always easy in areas that you're not familiar with - racks are not so easy to see from a distance. So here is how I extract a list of bicycle parking facilities from Openstreetmap and convert it into a POI file for a Garmin GPS so that it can direct me to the nearest rack.
Get the list of bike racks from Openstreetmap.
- Go to http://overpass-turbo.eu/
- Copy the following code into the left panel
node
({{bbox}})
[amenity=bicycle_parking];
out;
- On the map on the right, zoom in/out to the area you are interested in (technical note: the bbox command selects the map area as "bounding box" for the search)
- Click on "execute" - you should see all the bike parking marked on the map
- Click on "export", select GPX and save the resulting file.
Convert the gpx file into a Point of Interest (POI) File. This is for Garmin, but it should be similar for other GPS
- Garmin has some programmes on their website that do that, but I haven't tried that
- Linux users can use gpsbabel with a command like:
gpsbabel -i gpx -f export.gpx -x duplicate,location,shortname -o garmin_gpi,category="Bike parking" -F "bike_parking.gpi"
Copy the resulting file "bike_parking.gpi" onto your Garmin. On my eTrex 30 it then appears under "Extras".
Similarly, you can use [amenity=bicycle_rental]
for bike rental or [shop=bicycle]
for bicycle shops.