Questions tagged [osmnx]
OSMnx is a Python package to download, model, analyze, and visualize street networks and other geospatial features from OpenStreetMap. You can download and model walking, driving, or biking networks with a single line of code then easily analyze and visualize them. You can just as easily work with urban amenities/points of interest, building footprints, transit stops, elevation data, street orientations, speed/travel time, and routing.
osmnx
71
questions
5
votes
4
answers
11k
views
Cannot import name 'CRS' from 'pyproj' for using the osmnx library
I have used a fresh anaconda install to download and install all the required modules for osnmx library but I got the following error:
6
votes
1
answer
5k
views
python osmnx - extract only big freeways of a country
I know it is possible to extract the road network of a city via the OSMNX python package. See details at https://geoffboeing.com/2016/11/osmnx-python-street-networks/ .
paris_network = ox....
5
votes
1
answer
4k
views
OSMnx: plot a network on an interactive web map with different colours per infrastructure
I'm trying to plot a network where edges have different colors according to their Opens street map attribute ('highway'). It works if I use ox.graph, however, this generates a static map. If I use ox....
2
votes
1
answer
1k
views
OSMnx : how to provide more complex feature into the custom_filter parameter
I would like to pass some overpass request into ox.graph_from_place, but I don't really understand how it works with the doc.
I would like to create a graph with 2 types of roads (where the buses can ...
1
vote
1
answer
1k
views
Retrieve post covid pop-up cycleways with OpenStreetMap and OSMNX
The OSM community in Italy has started to update OSM with "emergency" or "pop-up" cycleways that many administration are creating to guarantee social distancing while public ...
8
votes
3
answers
14k
views
A module is working in Anaconda prompt, but not in Spyder
I have been fighting with this problem for hours now, and it's a kind of complicated one.
I'm on windows 7, Python 2.7, Spyder 3.2.6
I tried to install OSMNX through cygwin, however I faced many ...
3
votes
2
answers
3k
views
How to fill water bodies with OSMnx in Python
I currently use OSMnx for a project to draw road networks in an area.
I'd now like to add water bodies so that we can clearly see which parts of an area are water and land.
So far, I've been able ...
1
vote
1
answer
1k
views
Save a route and conserve its curvature with Python OSMnx
With OSMnx, I would like to be able to save a path with its curvature as the image below shows.
import osmnx as ox
import networkx as nx
# Download the road network
G = ox.graph_from_place('Monterey,...
1
vote
1
answer
1k
views
Can I add random nodes on edges manually in OSMNX?
I am new to OSMnx and to NetworkX packages in python.
Let's say I have the following example:
import numpy as np
import osmnx as ox
import geopandas as gpd
import networkx as nx
place_name = 'Fefan'
...
4
votes
1
answer
3k
views
transform lat long coordinates for a osmnx projected map
I want to get the closest node to a lat long pair from osmnx.
After i download the osmnx graph object i want to project it so i can remove dead ends from the road network as instructed in the docs.
I ...
3
votes
1
answer
4k
views
Extremely long response time with graph_from_place OSMNX
I'm trying to download the map of Mexico to avoid querying using save_graphml and avoiding long response times in the graph_from_place, but I've already left this code running for almost six hours and ...
3
votes
1
answer
2k
views
How to import multiple infrastructure type in osmnx?
Is there any way to specify multiple subcategories for an infrastructure type while importing roads using osmnx. From this question I understand that we can select only freeways by specifying ...
3
votes
1
answer
2k
views
Shortest route when converted to LineString misses the path in OSMNX
I'm trying to save the route to the disk which i plotted using OSMNX.
The route generated follows the road path but, when i try to convert the path to LineString which I can easily save to disk, the ...
2
votes
0
answers
2k
views
Open Street Map using OSMNX: how to retrieve bus routes?
import osmnx as ox
ox.__version__ # '0.13.0'
I would like to show the bus routes from the Open Street Map for Hannover on a map using OSMNX by retrieving them as ".graph...". E.g.:
G = ox....
2
votes
1
answer
4k
views
How to simply compute the travel time from one point to an other? (Without a plot)
I spent a lot of time reading and testing the example notebooks of OSMnx but I couldn't figure out a way to simply calculate the travel time from a given point (GPS coordonates) to an other one.
I ...