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
4
votes
2 answers

Issues running OSMnx on conda

I'm trying to get the Python package OSMnx running on my Windows10 machine. I'm still new to python so struggling with the basics. I've followed the instructions here https://osmnx.readthedocs.io/en/stable/ and have successfully created a new conda…
Ddee
  • 143
  • 2
4
votes
1 answer

How to compare the nodes and edges in two graphs?

I've got graphs of Berlin on January 1, 2020 and January 1, 2021, but how do I compare the changes of edges and nodes in the two maps? import osmnx as ox import pandas as pd import networkx as nx import matplotlib.pyplot as plt from itertools…
Peter Fu2
  • 41
  • 3
4
votes
1 answer

python osmnx - How to download a city district map from OpenStreetMap based on the boundary ID?

osmnx is a Python tool that allows you to download maps from OpenStreetMap and work with them as Networkx graphs. I could, for example get the the street map of a LA using the following command: osmnx.graph_from_place('Los Angeles, CA, USA',…
dani
  • 147
  • 2
  • 10
4
votes
1 answer

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 am aware that i project the graph and the lat,…
leo_bouts
  • 329
  • 2
  • 17
4
votes
1 answer

How to deal with large maps in osmnx

What is the best way to calculate the shortest street distance between two locations which cover a large distance using OSmnx. For example, if I was trying to find a route across the US? Doing this seems burdensome, and perhaps impossible given my…
cmj29607
  • 159
  • 1
  • 9
4
votes
2 answers

Isochrones with OSMnx

I have a large data (10k rows) of locations (lat, lon) and I would like to compute a 10min-walk isochrone starting from each point with OSMnx. (I tried with openrouteservice but have some limitations). I tried with this example:…
A. Traoré
  • 76
  • 7
4
votes
1 answer

Open Street Map using OSMNX: how to retrieve the Hannover subway network?

import osmnx as ox ox.__version__ # '0.13.0' I would like to show the subway in Hannover as known in the German subway OSM data on a map using the great OSMNX module. But unlike the New York example no results are returned for: G =…
Wouter
  • 1,296
  • 2
  • 14
  • 32
4
votes
2 answers

Python - Getting "TypeError: argument of type 'CRS' is not iterable" with Osmnx package

I'm getting a strange type error with Osmnx that I haven't been able to find any other threads or information on. I have used this library on a different machine in the past, and with a fresh Anaconda install and fresh installation of osmnx, I'm…
mhansen2
  • 43
  • 4
4
votes
1 answer

How to create heatmap in Python using OSMnx and a list of values corresponding to the graph's nodes?

I've built a simulation model of pedestrians walking on a network using OSMnx and one of the simulation's outputs is a list "Visits" that is corresponding to the nodes in NodesList = list(Graph.nodes). How can I create an heatmap using those lists…
Guy
  • 41
  • 3
4
votes
3 answers

Osmnx: How to retreive info on bus-stop info node, which is part of a highway?

I am trying to also show info of OpenStreetMap bus-stop node 439460636 (https://www.openstreetmap.org/node/439460636) which is part of a highway. I am using Python3 Osmnx Other POIs all show perfectly. Just not the ones which are not maped as a…
Jakob
  • 83
  • 7
3
votes
0 answers

Is there a way to approximate a polygon to a polygon in a road network

I'm working with polygons in maps. I have a df, df_polygons, each row in the df refers to a different polygon. And df_polygons['polygon'] retrieves a specific polygon, defined by a set of ordered points, an example of 2 polygons that are in the…
Beatriz Santos
  • 117
  • 3
  • 11
3
votes
1 answer

Is this a general bug of osmnx's installation? cannot import "shapely.geos import TopologicalError"

When I want to import osmnx, this error comes up. I created a new environment before and followed the standard installation process via conda.
SYC
  • 65
  • 5
3
votes
1 answer

OSMNX graph_from_gdfs KeyError: 'x' when converting a Geopackage to a Graph

I need to edit data downloaded by osmnx in geopackage format and then import it as a graph for calculating distances, isochrones etc. Current Process: Download osm data using ox.graph_from_point Save to Geopackage edges and nodes using …
GIS_py
  • 133
  • 1
  • 5
3
votes
1 answer

import osmnx on google colab give me an error

I'm trying to import osmnx on google Colab and it did install successfully using !pip install osmnx but when I try to import it in Colab like this import osmnx give me this error AttributeError: /usr/bin/python3: undefined symbol:…
noob
  • 672
  • 10
  • 28
3
votes
1 answer

OSMNX Shortest Path - How to skip node if not reachable and take the next nearest

I am using the OSMNX library on python. I am creating a 'drive' street network from a coordinate point I am setting the parameter 'retain_all' to False (I am assuming it should only bring connected nodes) However when i am running the shortest path…
tekavw
  • 33
  • 4
1
2
3
39 40