Skip to main content

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
2 votes
1 answer
24 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 (?) ...
Bart's user avatar
  • 10.1k
1 vote
1 answer
55 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"]'...
Ellio's user avatar
  • 121
0 votes
0 answers
13 views

OSMnx Bike-Lane Information around a Point

I'm interested in using OSMnx to query bike-lane information around specific points in cities. For example, if I was looking at (40.72182, -73.9892) in New York, I want to use OSMnx to display the ...
mmredwood's user avatar
0 votes
1 answer
29 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 ...
GDog's user avatar
  • 1
-1 votes
0 answers
27 views

Problems generating valid Graphml with osmnx

I want to generate a valid graph format with osmnx so that it can be later analyzed with igraph or similar. This is the minimal code: import osmnx as ox def __main__(): # Define the place name ...
jjmerelo's user avatar
  • 23.2k
0 votes
1 answer
54 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 ...
Ben's user avatar
  • 1
0 votes
0 answers
23 views

Extract graph with osmnx (ox.graph_from_bbox)

I try to extract a graph for a distance matrix, but idk if my data is wrong or other one. If a person can help me... Code : df = pd.read_csv('mat1.csv') def clean_coordinate(value): ...
Etienne Jolivel's user avatar
0 votes
0 answers
18 views

Notion of "Way" in OSMnx

I would like to use OSMnx to retrieve all edges of the same OSM way. I mean by way a collection of edges typically belonging to the same street (as defined in the OSM documentation here). I manage to ...
N1N1's user avatar
  • 11
0 votes
0 answers
35 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', ...
Blad To's user avatar
0 votes
1 answer
42 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 ...
FesterShinetop's user avatar
0 votes
0 answers
31 views

How to get lanes and turning movements for an intersection using OSMnx?

Given a latitude and longitude pair of a street intersection, how would I get information about the intersection such as the names of the roads that intersect, the number of lanes each road has, and ...
Clay O'Neil's user avatar
0 votes
1 answer
50 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 ...
DJ Boltzmann's user avatar
0 votes
0 answers
32 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 ...
cheesepanther's user avatar
0 votes
0 answers
25 views

Create Shapefile from Set of Routes in OSMNX

Place Lat Long Saluhallen 57,7052433780123 11,9678099732456 Gothenburg Law Court 57,7070260802736 11,9660123575804 Göteborg Centralstasjon 57,7090180088649 11,972294301168 Sahlgrenska University ...
FesterShinetop's user avatar
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 ...
Matheus Centeno's user avatar

15 30 50 per page
1
2 3 4 5
43