All Questions
86
questions
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
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',
...
1
vote
1
answer
577
views
plot_footprints of a geopandas dataframe results in a ValueError
I am having problems plotting data from the python module osmnx using matplotlib. core problem seems to be the size of the bounding box. When I specify a small box (neighborhood as an example) I get ...
0
votes
0
answers
167
views
Add GeoDataFrame Points to OSMnx graph and connect to closest node
I have a problem that I can't seem to connect my points (bronnen (sources)) from a gdf to a graph that I need for a shortest distance analysis. I want to check the shortest distance from my points to ...
1
vote
0
answers
49
views
Seaching Nodes depending on distance each nodes
I search for Nodes in Shibuya, Tokyo by OSMNX, Python.
In my case, I want to find the nodes depending on each distance.
I want to search 2 cases, distances between the nodes under 30m and over 100m, ...
0
votes
1
answer
129
views
Edges removed from osmnx graph still appear when graph is plotted or exported. Why?
I have an osmnx graph. I identified a specific edge that I want to remove from the graph using the G.remove_edge(u, v) function. After doing this, if I run G[u][v] to look at the edge attributes I get ...
3
votes
0
answers
84
views
Is there a way to approximate a polygon to a polygon in a road network
I'm working with polygons in maps. I have a df, df_polygons, each row in the df refers to a different polygon. And df_polygons['polygon'] retrieves a specific polygon, defined by a set of ordered ...
0
votes
0
answers
136
views
How to optimize fetching data from osmnx? Checking if a point lies on a road
There are about 100,000 points with geometry information in the form of a csv file. The points are spatially distributed across the world in various different countries.
Trying to check if the points ...
0
votes
1
answer
61
views
Compute areas for multiple entries of GeoDataFrame
I have some working code that computes the area of a city by name:
def get_area_of_city(city_name):
# Fetch the geodataframe for the specified city
city_gdf = ox.geocoder.geocode_to_gdf(...
0
votes
1
answer
225
views
How to retrieve relations of type `route=bicycle` with OSMNX?
I would like to extract several bike touring routes from Open Street Map using the OSMNX package.
For example, this bike route has the property type=route and route=bicycle. However since they are ...
0
votes
0
answers
102
views
GeoDataFrame.plot doesn't work as expected with column color
I have a GeoPandas GeoDataframe containing buildings' geometries. For each building, I calculated the distance to a given LineString, and added the column "dist" to the GeoDataFrame.
I would ...
0
votes
1
answer
331
views
Adding custom nodes in osmnx map
I was trying to route two co-ordinates using osmnx. I found that osmnx takes nearest node w.r.to our given co-ordinates. So, I was thinking if it is possible to create custom node from our given co-...
0
votes
0
answers
144
views
Get physical address from a way containing nodes only
I'm new to geocoding stuff.
I have a list of addresses which I have to find the nearest residential buildings for. At first, I'm looking for basic data of these addresses using geopy.geocoders....
-1
votes
1
answer
380
views
calculate route and arrival time between two point in python
i have two simple point(lat,lon) and one parameter named speed. i need to find the route and arrival time.
for example:
point1: (1,1)
point2: (5,5)
speed: x km/h
one possible route is : (1,1) -&...