(How) is it possible to use osm way ids instead of lat and lon for maps in streamlit?

Hello, I think the title is pretty self-explanatory, so frankly I wanna use a data frame that contains the osm way ids but not lat and lon so if it is possible to do that I would be delighted if someone could swiftly tell me how. (I figured it might be an option since the streamlit map is based on osm.
Sincerely,
Tim

Hi @kangolray, welcome to the Streamlit community!

Streamlit isn’t really based on OpenStreetMap, but rather we use pydeck to provide map functionality. st.map is a convenience function for plotting lat/lon…if you want to plot osm ids, and pydeck supports that, then you can render that in Streamlit using st.pydeck_chart.

Best,
Randy

Thank you very much that is incredibly helpful!

1 Like