All Questions
437
questions
2
votes
1
answer
29
views
Filter OpenStreetMap edges on `Surface` type
I'm accessing OpenStreetMap data using osmnx, using:
import osmnx as ox
graph = ox.graph_from_place('Bennekom')
nodes, edges = ox.graph_to_gdfs(graph)
I know from openstreetmap.org/edit that all (?) ...
1
vote
1
answer
63
views
How to order LineString geometries sequentially in returned OSMNX edges GeoDataFrame
I have a geodataframe of edges that are returned from OSMNX:
import osmnx as ox
# Getting graph for specific road
cf = '["highway"!~"motorway"]["ref"~"TF-563"]'...
0
votes
1
answer
34
views
ImportError: cannot import name 'get_nearest_node' from 'osmnx.distance'
I am trying to get MaaSSim running, but I get stuck right at the beginning following the instructions. I can download the git repository, I downloaded osmnx (and it works), but then I get stuck. Would ...
0
votes
1
answer
58
views
Get Lon / Lat from geopandas
I'm working of the example below
https://github.com/gboeing/osmnx-examples/blob/v2.0.0b0/notebooks/13-isolines-isochrones.ipynb
import geopandas as gpd
import matplotlib.pyplot as plt
import networkx ...
0
votes
0
answers
37
views
Unable to allocate 30.8 GiB for an array with shape (3415, 1211817) and data type object
I am trying to obtain using features_from_place(). I am using the following tags:
tags = {'aeroway':'aerodrome',
'aeroway':'hangar',
'aeroway':'helipad',
...
0
votes
1
answer
49
views
oneway:bicycle=no in OSMNX graph with network_type='bike'
I am working on an asssessment of bicycle infrastructure along common routes within european cities. In the process I encountered the following problem:
Within Europe it is quite common to allow ...
0
votes
1
answer
51
views
There is an avaliable sewage network from a city using osmnx.graph_from_place?
I would like to have access to the sewage network of a city in the world, knowing the elevations, locations of the sewers and the pipelines that connect them.
The idea of this is to use it in an ...
0
votes
0
answers
33
views
Getting 'KeyError: 'crs'' when creating Geopandas data frame from a graph with osmnx
I extracted a list of nodes from Open Street Map using astar_path from Networkx. I am trying to create a geopandas data frame the path with that list of nodes. I am able to create a graph from the ...
0
votes
0
answers
27
views
How can I draw only the outer boundaries of a street network using OSMnx and Folium?
I would like to draw only the outer boundaries of the street network within a specific radius around a central point (latitude and longitude).
Currently, I'm using the following code to extract the ...
1
vote
0
answers
106
views
a-star algorithm visualisation
I'm trying to display the path found by the astar algorithm on a map using OSMnx, but I'm having a lot of issues displaying the nodes, edges & path on the graph. I'm pretty new to coding, I took a ...
2
votes
1
answer
38
views
`osmnx.shortest_path` returns `None` for valid origin and destination nodes
Description
When calculating the shortest path between two locations with OSMnx, ox.shortest_path() failed to get any route and returns None
origin_lat=42.482, origin_lon=-70.910, dest_lat=42.472, ...
0
votes
0
answers
43
views
How to create a route on a web map (Flask) using folium and osmnx?
So I want to create a website on Flask where users can create a route. I have no problem creating a route with just Folium, but I need to use nodes from the map so I decided to use OSMnx. However, ...
0
votes
0
answers
86
views
OSMnx route_to_gdf function
I just have a question on the usage of the 'weight' argument in the route_to_gdf function. In https://osmnx.readthedocs.io/en/stable/user-reference.html, it says "weight (string) – if there are ...
0
votes
0
answers
48
views
How do I efficiently apply a function that uses a fairly large NetworkX graph to each row of a Dask series?
I am currently facing this problem:
I have a pandas (or dask) dataframe where one of the columns holds integer values representing the index of a node in a given NetworkX graph. The graph itself is ...
0
votes
0
answers
24
views
Issues with Repeated Nearest Nodes in GPS Data Interpolation Using NetworkX and OSMnx
I am working on a project that involves interpolating GPS points using the OpenStreetMap (OSM) data with NetworkX and OSMnx in Python. The goal is to interpolate additional GPS points if the distance ...