title: How to convert a list of Open Street Maps (OSM) IDs to geojson to plot on folium?
body: <p>I have searched for my region counties manually and I have now a list of OSM IDs. Example:
  <a href="https://www.openstreetmap.org/relation/4791885" rel="nofollow noreferrer">https://www.openstreetmap.org/relation/4791885</a> - ID is in this case <code>4791885</code>.</p>
  <p>I would like to plot this shape in <code>folium</code> (to do later on a choropleth map of the population density). I tried downloading manually the xml and then using this library <code>osm2geojson</code> but it did not work (`multipolygon member not handled&quot;)</p>
  <pre><code>import folium
  boulder_coords = [41.3874, 2.1686]
  #Create the map
  my_map = folium.Map(location = boulder_coords, zoom_start = 7.5)
  geojson = &quot;MY MISSING FILE&quot;
  folium.GeoJson(geojson, name=&quot;moianes&quot;).add_to(my_map)
  folium.LayerControl().add_to(my_map)
  my_map
  </code></pre>
  <p>As mentioned I have a list of IDs e.g. 2417889, 2822130 up to 42 in total so if the solution can handle it efficiently (less manual work) would be great.</p>