Relative Content

Tag Archive for osmnx

How to include motorway with osmnx?

When configuring a network using osmnx, is it not possible to create a motorway? When configuring with osmWebWizard, if the road type is set to the default setting of All Roads, a more detailed road configuration including highways is created for the same area and range.

Street Density from osmnx for multiple areas

I have to get street density for a large number (around 5 millions) quadkey 14 tiles from osmnx. To my understanding, this could be done through downloading the graph for a given area, and then take the street_density_km variable from the basic_stats() function on the projected graph; but due to the number of areas I would need to iteratively request data for would make the task unpheasible.
My idea was to download data for a larger area (quadkey 9 tiles for example) this is the streets graph for a tile 13and then take for every child tile in the area a subgraph of nodes intersecting only the smaller tile14 areathis is a child tile 14 of the other area. I would like to be able to extract this exact graph I downloaded through the graph_from_bbox() function by taking the subgraph of the parent tile’s graph, where I would then apply the basic_stats() function.
I have very few experience working with graphs though, and I’m not sure on how to do that, and if that would actually allow for a pheasible task.
I am also unsure on how to navigate multiple requests to osmnx.

Notion of “Way” in OSMnx

I would like to use OSMnx to retrieve all edges of the same OSM way. I mean by way a collection of edges typically belonging to the same street (as defined in the OSM documentation here).