Questions tagged [osmnx]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
29 views

Parallel offset on Folium

Is there any way to add parallel offset for those lines which oneway road are False? All line here are straight (segment). So We just have two points for each line (start and end points). # There is ...
1
vote
0answers
42 views

How to download buildings data from OSM with a polygon (shapefile) as the bounding box?

I am struggling to complete this task. I am trying OSMnx which can be used to download data from OSM above however I am getting an error when using its from_polygon feature when trying to download ...
0
votes
1answer
57 views

OSMNX - City Suburbs Polygons

I'd like to extract, given a city name, all suburbs and relative polygon geometries. For instance: https://nominatim.articque.com/details.php?place_id=230259366 So, I run the code: place = 'Torino, ...
2
votes
1answer
81 views

Showing two roads lane of one road

I am using osmnx package to visualize a street network. I would like to visualize both (two) lanes in opposite directions of a road. I am using this code https://github.com/gboeing/osmnx/issues/162 ...
3
votes
1answer
29 views

osmnx.get_nearest_edge(s) behaves randomly

I'm struggling with a rather odd problem with the python package OSMNx. I have lots of GPS points in a pandas dataframe that were originally in EPSG 4326, but I've already projected them onto EPSG ...
0
votes
0answers
54 views

How to delete nodes that are unnecessary

I got a OSMNX graph, and put edges and nodes in two separated GeoDataFrames. Now I want to delete the nodes that dont intersect with the edges, or nodes that are not very, very close to the edges. I ...
1
vote
1answer
119 views

Convert Linestrings from OSMnx into Multipolygon

I'm retrieving some geometries from OpenStreetMap with OSMnx library with the following code: G = ox.graph_from_place('Casco Viejo, Bilbao, Spain', network_type='walk', ...
0
votes
1answer
34 views

Is there a way to see the type of tags/features pulled in an OSMnx multigraph?

I'm new to OSMnx / Overpass queries. I'm trying to pull data on rail networks in global cities. I'm using the script in Python below to pull rail data in London, for example. There are a number of ...
2
votes
1answer
181 views

Query to Calculating Rail Length Using Overpass API / OSMnx Python

I'm new to overpass queries. I'm trying to write a python script to pull data on the length of rail in major global cities. I am having a problem in the length of track (using osmnx.basic_stats(G)) ...
0
votes
0answers
683 views

Single Positional Indexer is out of bounds

I am playing with OSMNx and I would like to extract street blocks, I have this code which should display the blocks import osmnx as ox import geopandas as gpd import shapely import matplotlib.pyplot ...
2
votes
1answer
501 views

Cannot get OSM tags when downloading data with osmnx functions which are based on Nominatim requests

Context I am trying to download some footway graph from OpenStreetMap (OSM) using osmnx. Here is a piece of code: import os, sys import pandas as pd import geopandas as gpd import matplotlib.cm as cm ...
0
votes
0answers
33 views

How to retrieve oneway taxiways from Overpas API?

I have was able to make a query to http://overpass-turbo.eu/ where I request the taxiways of a specific airport like this: [out:xml]/*fixed by auto repair*/[timeout:25]; // fetch area “airport” to ...
1
vote
1answer
178 views

How to save overpy query to .osm?

I am using overpy to collect data information about taxiways, taxilanes and parking positions of an airport (icao code LOWW). I was able to achieve my goal I wrote the following lines of code: import ...
3
votes
0answers
107 views

Polygon projection fail with osmnx [closed]

I download a graph and plotted an accessability polygon on the projected graph according to tutorial G = ox.project_graph(G) # Then I wanted to project my accessibilty polygon g1 back to 'epsg:3857'...
1
vote
0answers
141 views

OSMNx Extracting blocks from point and save coordinates of corners of each block

I am playing with OSMNx and I would like to extract street blocks, I have this code which should display the blocks import osmnx as ox import geopandas as gpd import shapely from shapely.geometry ...
2
votes
0answers
68 views

OSMNX KeyError when trying to compute edge_centrality on a graph composition

Context: I am trying to merge several different graphs (some sharing nodes with others) downloaded from openstreetmap using omsmx. While storing these different graphs in a list, I use the nx....
2
votes
1answer
232 views

Writing osmnx queried footprints to shapefile

I'm attempting to pull a set of building footprints from open street map using a shapefile boundary. I have success getting the buildings into a geodataframe, but when I attempt to write them out to ...
2
votes
0answers
156 views

Street traffic flow (from Azure Map GeoJSON) to OpenStreetMap street network (graph)

The Ultimate Goal: I am trying to find the shortest and least traffic path between two points for a given pair of latitudes and longitudes on the map. This is rather standard in most of the maps, but ...
2
votes
0answers
168 views

Save polygon on map

It is probably a noob question but I'm still a beginner with maps and these libraries. I used OSMnx, NetworkX and GeoPandas the draw a map with two polygons on it. Each polygon have the begin with ...
1
vote
0answers
709 views

Getting pedestrian network with osmnx

Context I would like to extract into a network (i.e. a graph with a topology that can be used for routing), all pathways that can be 'legally' walked by pedestrians in an geographical area. I am ...