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
-1
votes
1 answer

How to include car ferries in OSMnx graphs

Is it possible to have OSMnx (great tool BTW) include car ferries when building a graph? Failing that, what would be the most direct way to build such a graph? The problem isn't just that the ferry routes themselves aren't present but, without the…
jwolf
  • 908
  • 7
  • 13
-1
votes
1 answer

OSMNX: How to get inmediate possible directions from coordinate for a Q-learning algorithm

I'm working on a Q-learning algorithm that navigates over OSMNX nodes. My goal is to offer the Q-learning agent an step based context where on each step I can list the possible actions like: "straight, turn left, turn right...". So I would need a…
Macumbaomuerte
  • 2,197
  • 2
  • 19
  • 22
-1
votes
2 answers

How to remove edges based on raster masking?

I am new to geospatial toolbox of Python so my question might sound basic and irrelevant to OSMNX package. I am trying to identify and remove road segments (i.e. edges in the graph) that are damaged say by flood. After that I can do my network…
Feraman
  • 39
  • 6
-1
votes
1 answer

Offline routing Mapbox dataset

I am trying to obtain a projected dataset which has all streets and addresses. I used OSMNx to get the a shapefile with all streets. However unlike Mapbox , i can not look up a street via address . Is there a way to obtain the address for each…
Mohammad
  • 47
  • 1
  • 5
-1
votes
2 answers

Retreiving building addresses between origin and destination

I am using OSMNx and trying to retrieve the addresses between Origin and destination point as shown in below figure. Is it possible to extract the addresses between two points or Nodes? import osmnx as ox import networkx as nx import…
Case Msee
  • 405
  • 5
  • 17
-1
votes
1 answer

Get node DISPLAY (pixel) coords in networkX MultiDiGraph (produced by OSMNX)

I am creating a graph_from_point using osmnx. I want to save that graph to a PNG image, but created a supplementary file giving me the lat/lng coords of nodes along with their PIXEL coord in the saved PNG file. This tutorial :…
user1676300
  • 135
  • 7
-1
votes
1 answer

How to fix JSONDecodeError?

I am new to OSMnx and followed the steps from the website (https://github.com/gboeing/osmnx-examples/blob/master/notebooks/10-building-footprints.ipynb) on how to make a "Street network + building footprints: square-mile visualizations" map. All I…
Ashley
  • 9
-5
votes
1 answer

Find shortest road(s) connecting any 2 pair of points

I have a shapefile containing road network information and a list of lat lon points (shown in red in map). The points are not guaranteed to lie on a road. I want to find the shortest road connecting any 2 pair of points and plot that road in a map.…
user308827
  • 21,227
  • 87
  • 254
  • 417
1 2 3
39
40