Open Avenue Maps is likely one of the most essential knowledge sources relating to geographic info. Lots of the knowledge out there on the platform may also help us conduct a variety of analyses, however how can we simply obtain the information for our analyses? The Overpass API permits entry to all the information out there on the platform by way of custom-made queries. This API serves as the inspiration for the favored Python library OSMnx and, because of its personalised queries, it permits us to acquire extra knowledge than the Python library, which is restricted to the information most continuously extracted from Open Avenue Maps.
On this article, we are going to use the API to acquire the subway routes positioned in Hamburg. Utilizing these routes, we are going to create a NetworkX graph, which we are going to in a while visualize utilizing an interactive visualization in Folium. The information extracted on this article may very well be used for a number of analyses, reminiscent of evaluating the gap of assorted households to a subway station to foretell their financial worth.
As we will see, geographic knowledge could be very invaluable for a variety of analyses. Due to this fact, understanding instruments to simply extract this knowledge is completely essential. Let’s begin with the article!