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

TopologicalError: The operation 'GEOSDifference_r' could not be performed

I'm trying some code to get the building footprints of Barcelona: import osmnx as ox import matplotlib.pyplot as plt %matplotlib inline place_name = "Barcelona, Barcelona, Catalonia, Spain" graph = ox.graph_from_place(place_name) buildings =…
Rodrigo Vargas
  • 273
  • 3
  • 17
0
votes
1 answer

How to get the latitude and longitude points of a node in a graph in osmnx graph?

I constructed a graph and want to see the latitude and longitude values of each node in the graph. How can I find those? I used G.nodes to find each node but I get some sort of ids. import osmnx as ox G = ox.graph_from_point((41.0911561,…
Nora_F
  • 431
  • 5
  • 17
0
votes
0 answers

OSMnx Error: No module named 'pyproj.compat'

I am attempting to try out some applications of OSMnx. The installation goes through without errors following the provided installation guide using Anaconda3 in Windows 10. However, upon importing the package, import osmnx as ox I receive the…
0
votes
1 answer

How to Install Geopandas on Windows 10 Using pip

In the interest of having a working solution accepted on Stack overflow with as much info as possible on the issues that come up with using pip to install Geopandas or a package like OSMnx that depends on it using pip on Windows 10 I'll post my…
Hugh_Kelley
  • 988
  • 1
  • 9
  • 23
0
votes
0 answers

Map/snap GPX erroneuous lat-lon points to edges

I have several (25*10) GPX cycling traces that I want to analyse (distances, max speeds, acceleration, ...), obtained from Runkeeper. The issue is that the data contains significant errors, with data points in fields rather than on roads. I'm new to…
Monte Cristo
  • 131
  • 1
  • 12
0
votes
1 answer

osmnx road connecting two city aren't identified (missing node of border)

I have an Dijsktra Algorithm that I apply on a graph that I get from open street map. It works fine with a single graph. But when I compose a graph of two neighboring city, the same algorithm doesn't find any way between the graphs .. I noticied…
harry
  • 31
  • 6
0
votes
1 answer

OSMnx Limit on using "street network from bounding box": TypeError: graph_from_bbox() takes at most 15 arguments (77 given)

I am trying to get the drivable street network within some lat-long bounding box using the example 2a sample code from - https://geoffboeing.com/2016/11/osmnx-python-street-networks/ - but I am getting this error; TypeError: graph_from_bbox() takes…
Vondoe79
  • 313
  • 4
  • 22
0
votes
2 answers

Finding the exact name of City and Country

import osmnx as ox %matplotlib inline G = ox.graph_from_place('Seoul, South Korea', network_type='drive') fig, ax = ox.plot_graph(ox.project_graph(G)) In this part, how to find the exact title of city and country? It does not work for Seoul, South…
0
votes
1 answer

How to judge whether or not a given coordinate is in a certain city?

I have some origin data that contains lat-lng coordinates, and when I use osmnx's get_nearest_edges method, I want to filter those coordinates that are not in the given city (San Francisco in this example). Is there any convenient method that…
0
votes
1 answer

Cleaning divided roads on a graph to count intersections within x distance accurately

I'm trying to count the amount of intersections within x distance of each edge of a graph to then display using a colour ramp, however divided roads show up as multiple intersections instead of just one. The script below shows my current working…
0
votes
2 answers

Osmnx ox.graph_from_place RuntimeError: b'no argument in initialization list'

I tried to run the demo, but no matter what I try I get RuntimeError: b'no arguments in initialization list' when I try to use ox.graph_from_place. I've search multiple places but haven't found any answers.I'm using windows 10, python 3.7 and my…
0
votes
0 answers

Can we use OSMnx to extract Street Networks from OSM in different years? Let me say 2000, 2005, 2010, and 2015

I am using OSMnx to extract street networks, but unfortunately, I can't obtain different years of street networks from OpenStreetMap. Does anyone have tips for doing that, please? Thanks.
YatPKU
  • 1
0
votes
2 answers

Python: error using osmnx during building extraction

I would like to extract the building layer information from in Haiti using osmnx. I works for different cities it does not in the case of import osmnx as ox place_name = "Port-au-Prince" buildings = ox.buildings_from_place(place_name) I get the…
emax
  • 6,965
  • 19
  • 74
  • 141
0
votes
1 answer

How Can I get the start and end node of the nearest edge to large points faster?

I have DataFrame contain two columns (latitude, longitude ) for 30000 points as follows: I need to obtain the start node and end node of the nearest edge to each point. I used the following code for a sample (contain 5 points only) using a method…
Ahmad Senousi
  • 613
  • 2
  • 12
  • 24
0
votes
0 answers

how to introduce a node representing a geocode into a edge in Graph?

), I am working with the package osmnx and networkx. Is there any way to introduce a node correspond a building (geocode) into an edge of a graph that I have downloaded from openstreetmap ? Currently when I download a graph of city, each node…
harry
  • 31
  • 6