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 is a package to download, model, analyze, and visualize street networks and other geospatial features from . OSMnx is built on top of and . 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.

596 questions
0
votes
1 answer

OSMnx - how to plot neighborhoods

I'm trying plot just one neighborhood inside the Salvador City. I'd like to know if is possible separate the city in neighborhoods using the OSMnx. I need to get the statistics by neighborhoods. Thanks!
0
votes
1 answer

Capacity of roads in OSMnx

Are there any attributes to weigh the edges of the network (roadways) based on their capacity? For example, the number of lanes for each roadway or the maximum capacity of driveways.
0
votes
1 answer

Plot routes using pattern as a color Osmnx and Python

I would like to plot two routes which overlap in some parts using osmnx and python. I used yellow as a colour for route 1 and blue for route 2. To clarify what I mean using pictures: This is the plot of route 1 only: This is the plot of route 2…
0
votes
1 answer

OSMnx wont open in Juypter Notebook

I downloaded osmnx via conda using the code: conda config --prepend channels conda-forge conda create -n ox --strict-channel-priority osmnx This comes from the osmnx documentation: https://osmnx.readthedocs.io/en/stable/ I can see the module has…
smeesn
  • 21
  • 1
  • 4
0
votes
0 answers

list' object has no attribute 'xy' - NetworKX

I'm generating a list on nodes ids according to get_nearest_node with OSMnx and generate a route between origin and destination that pass all the nodes in my list. Python code: ids = [] for r in range(len(df)): location = df.iloc[r]['location'] …
Roy Ancri
  • 119
  • 2
  • 14
0
votes
1 answer

OSM generate route with spatial constraints in Python

I want to generate a route between origin and destination location using NetworKX and OSMnx. The origin is the green dot and the black one is the destination. My constraints are the blue circle which are locations I must pass throw their areas. My…
Roy Ancri
  • 119
  • 2
  • 14
0
votes
2 answers

pip install osmnx errors

I'm getting error while "pip install osmnx" Could anyone explain the problem, else, what to do? I'm using pycharm python 3.7.
0
votes
2 answers

How do I correctly download a map from osmnx as .svg?

I am new to Python. Just working with OSMnx and wanted to open a map as an svg in Illustrator. This was posted in the GitHub documentation: # you can also plot/save figures as SVGs to work with in Illustrator later fig, ax =…
TrevPennington
  • 435
  • 5
  • 15
0
votes
0 answers

Trouble writing a GeoPandas Dataframe to SQL Server

I'm downloading a building set from openstreetmap using osmnx into a geopandas dataframe and then attempting to write this dataframe to sql server. This question has been asked and answered but the code from the answer seems to not be working for…
jport
  • 170
  • 12
0
votes
1 answer

How to select shortest paths according to selected edges?

I am using NetowrkX and OsmnX Python packages to analyze a road network. Once I obtained the simplified graph, I would like to evaluate the performance of the network through the shortest path calculation. In order to obtain a specific index, I need…
0
votes
1 answer

Iterating over an isochrone in OSMNX in Python

I am trying to iterate over some polygons using OSMNX in Python based on this example but am having issues with the output. The set up: import geopandas as gpd import matplotlib.pyplot as plt import networkx as nx import osmnx as ox from descartes…
william3031
  • 1,653
  • 1
  • 18
  • 39
0
votes
1 answer

Error messages when installing OSMnx and GeoPandas

Hello I am trying to install OSMnx and GeoPandas using pip install osmnx and pip install geopandas (according to this link: https://geoffboeing.com/2016/11/osmnx-python-street-networks/) It says that in order to use OSMnx you have to install…
Mechatrnk
  • 101
  • 1
  • 13
0
votes
1 answer

OsmNx: SVG and PNG images have a different scale

I am working in Jupyter and don't understand why OsmNx saves SVG and PNG with different scales. I tried changing DPI and tweaked other parameters, but didn't solve the issue. I found nothing about it in the online documentation and some…
Alex Poca
  • 2,406
  • 4
  • 25
  • 47
0
votes
0 answers

OSMnx: unlinking tunnels and bridges

As far as I know, Bridges and tunnels can overlap with the above streets in OSMnx (since it is a oversimplified) is there any way to unlink bridges and tunnels to get more accurate statistic results. This feature exists in Space Syntax, in which…
Mohammad
  • 47
  • 1
  • 5
0
votes
1 answer

OSMnx SSLError: HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443):

I am getting this SSLError: HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Max retries exceeded with url: /search?format=json&limit=1&dedupe=0&polygon_geojson=1&q=Houston%2C+Texas%2C+USA (Caused by SSLError(SSLError("bad…
Vondoe79
  • 313
  • 4
  • 22