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: Create rectangular building footprints

I'm using the sample "make_plot" function shown in the example page on the OSMnx repo page to generate maps of building footprints. The output is a square image, is there any way to adjust the height and width to produce a rectangular file? I made…
tykom
  • 35
  • 9
0
votes
2 answers

Shortest path in a street network

I'm working with NYC taxi dataset. Street network are obtained using osmnx and red dots are taxi pickup GPS locations. I did some map-matching. I projected the GPS locations to its nearest edge, and the projections are treated as nodes and added to…
sofaruntitled
  • 275
  • 1
  • 2
  • 6
0
votes
0 answers

Using large OSM File with OSMnx

I am currently working with a large dataset containing coordinates, and I want to validate the quality of the data. The df contains coordinates from all over Europe. To valid the quality, I want to calculate the deviation to the nearest road since…
YannickAaron
  • 157
  • 10
0
votes
1 answer

osmnx: project point to street segments

I have a point given by lat and lon and I want to find the nearest edge to the point by minimum Euclidean distance. For example import osmnx as ox track = [(40.7052, -74.0069)] fig, ax = ox.plot_graph(G, show=False, close=False) for pairs in track: …
sofaruntitled
  • 275
  • 1
  • 2
  • 6
0
votes
1 answer

In OSMnx, how would I set all roads to be two-way roads?

In fact it is as the title state. I want to test my simulation model on a simplified version, which means less roads so I took only the driving roads, but some of them are one-way roads. How would I set all roads in a graph to be of two-way? For…
Guy
  • 161
  • 1
  • 1
  • 8
0
votes
2 answers

Get nearest node along nearest edge

I'm following gboeing's reply in this post https://github.com/gboeing/osmnx/issues/269 and using the osmnx Docker image, but I'm getting the error AttributeError: module 'osmnx' has no attribute 'great_circle_vec' The Docker does seem to have the…
0
votes
1 answer

OSMNX Looping with geocoder

What would be the best way to loop through a list of addresses using geocoder.geocode if there are some locations that don't exist on the map? How could I skip them so that the loop continues without this exception? Exception: Nominatim geocoder…
Zinic
  • 27
  • 6
0
votes
0 answers

How to solve NetworkX Error NoPath: Node X not reachable from Y

After regular DBSCAN I got a map with the clusters Im Attaching nearest nodes to each firm plotted by OSMNX , then create the network-based distance matrix in order to reproduce Network-Based Spatial Clustering from this TUTORIAL Speed up distance…
0
votes
1 answer

TypeError: "Set type is unordered" in OSMnx isochrones example

Running the OSMnx isochrones example, get a TypeError: "Set type is unordered" on the last cell. Any idea what's going wrong? OSMnx 0.15.1 on Python 3.8.5, Pandas 1.1.1, GeoPandas 0.8.1. It works as expected with Pandas 1.0.5, but fails with Pandas…
oefe
  • 19,298
  • 7
  • 47
  • 66
0
votes
1 answer

OSMnx: Retrieve building polygon for multiple cities

I am new to osm. Currently I am trying to retrieve multiple cities' building polygon using osmnx package in python. Code: place = "Kuala Lumpur, Malaysia" graph = ox.footprints.footprints_from_place(place,…
julian
  • 3
  • 3
0
votes
1 answer

Using Real-Time Data to Dynamically Adjust Edge "costs" in OSMnx?

My question is largely summarized in the title. I'm wondering if it's possible to weight the specific "edges" of a network by using real-time data feeds in an effort to create a more accurate "time to destination" estimate. If not with OSMnx, how…
MHB
  • 5
  • 1
0
votes
1 answer

How to install osmnx in Pycharm

I am trying to install OSMNX module in Pycharm (using Python 3.7.2). I tried installing it using pip install osmnx but got the following error[![error][1]][1] i have also tried using .whl files from…
0
votes
1 answer

adding conda environment via cmd line to jupyter doesn't work

Trying to get OSMnx into jupyter conda environment. But conda environment not set correctly. On command line: Created conda environment using OSMnx installation steps I cloned the environment to rename it 'realestate' Added realestate to…
frankr6591
  • 1,211
  • 1
  • 8
  • 14
0
votes
1 answer

Getting XY Coordinates/Lat Lon from OSMNX Consolidate Intersections

With reference to OSMnx Get Lat Lon Coordinates of Clean Intersection Nodes and the recent change from clean_intersections to consolidate_intersections, the snippets in the original link do not appear to work.how can we get the same XY coorindates…
Kris
  • 11
  • 1
0
votes
1 answer

Inconsistent node length from polygons in Osmnx

My question is pretty straightforward: I have a network formed from 2 polygons and another that only contains only one of the two polygons from the previous network. If I check how many nodes are in one polygon in the network that has 2 polygons I…
DPM
  • 845
  • 7
  • 33