Creating a map with markers imported from OpenStreetMap
Posted by wille on 7 November 2013 in English.I’ve mapped the bicycle sharing stations of Salvador (Bahia, Brazil) and I would like to show these stations on a map. When there was only five stations I created manually a GeoJSON file using geojson.io and it generated a map to embed in a page. But now there is 19 sharing stations! It would be a lot of repeated work to map the stations on OSM and after create the geojson manually.
So I discovered the osmfilter, a useful software to filter OSM data. Combining osmfilter and geojson.io you can extract data from OSM and show that information on a personalized map. So let’s go to the instructions.
The first step is to download the OSM data from the region you want. On my case, I used JOSM to download all the data of the city and saved the .osm file on my disk.