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
634
questions
12
votes
5
answers
2k
views
Finding neighbourhoods (cliques) in street data (a graph)
I am looking for a way to automatically define neighbourhoods in cities as polygons on a graph.
My definition of a neighbourhood has two parts:
A block: An area inclosed between a number of ...
11
votes
1
answer
2k
views
How to create a color bar in an osmnx plot
Currently I have created a color map based on the distance of the nodes in the network to a specific target. The one thing I am not being able to do is a color bar. I would like the color bar to show ...
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 ...
8
votes
4
answers
6k
views
AttributeError: dlsym(RTLD_DEFAULT, Error_GetLastErrorNum): symbol not found
I recently downloaded the OSMnx package to work with street networks. However, it always gives me back the error below whenever I try to import the package. I've followed several steps that people ...
8
votes
1
answer
6k
views
Adding a point to an OSMnx plot
I'm trying to add a point to an existing OSMnx plot in a Jupyter notebook like so
import osmnx as ox
import matplotlib.pyplot as plt
G = ox.graph_from_address('1600 Pennsylvania Ave NW, Washington, ...
8
votes
1
answer
910
views
How do I speed up all_pairs_dijkstra_path_length
I have a large osmnx (networkx) graph and nx.all_pairs_dijkstra_path_length is taking a long time to calculate.
What possibilities are there to speed up the calculation?
7
votes
1
answer
4k
views
How to extract street graph or network from OpenStreetMap?
How to extract street graph or network from OpenStreetMap ?
7
votes
1
answer
6k
views
Why does new osmnx 'nearest_nodes' function return different results than old function 'get_nearest_node'?
The output of the following code
import osmnx as ox
import networkx as nx
import folium
G = ox.graph_from_place('Wuppertal, Germany', network_type='drive')
G = ox.speed.add_edge_speeds(G)
G = ox....
6
votes
3
answers
10k
views
Plotting Multiple Routes with OSMNx
I am using OSMNx to plot shortest path routes and I cannot figure out a way to plot multiple routes on the same map.
Here's my code so far,
route_list = []
for i in range(len(pick_drop_outliers_ratio)...
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....
6
votes
1
answer
4k
views
Using OSMNX to retrieve nearby points of interest
hoping someone can help me?
In summary, I am trying to retrieve nearby points of interest based on a set of given coordinates.
After doing some research, I found a neat function
osmnx.pois....
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:
5
votes
1
answer
3k
views
How to make title and legend area in a matplotlib figure not transparent?
Edit: The issue I have with my example further below I also can recreate with this:
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
plt.ylabel('Y-label');...
5
votes
3
answers
10k
views
Installing OSMnx with Anaconda
I am trying to install the osmnx package in Python 3 on my computer, following the steps outlined here https://geoffboeing.com/2017/02/python-getting-started/. The steps are:
Download miniconda, with ...
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....