All Questions
20
questions
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
105
views
KeyError When Calculating Orientation-Order Using OSMnx on Python
I followed what gboeing posted on this thread OSMnx : normalised measure of orientation order
I got a " KeyError: 'bearing' " as a result when I ran it for my query.
Below is the code
#CODE#
...
-1
votes
1
answer
261
views
I have encounter TypeError: Must pass list-like as `names` error of pandas library while try to run osmnx.nearest_nodes function
I try to get nearest nodes to my origins for finding shortest routes. For this, I use osmnx.neraest_node function:
orig_nodes = list(ox.nearest_nodes(G, brt_stops_reproj["x"],...
1
vote
0
answers
539
views
Error: vhstack_dispatcher() missing 2 required keyword-only arguments: 'dtype' and 'casting' after creating a new enviorment
I'm trying to create a dataframe from a dict file, using pd.DataFrame.fromdict. A snippet of my code can be checked below:
path = r'...\file.json'
json_file = open(path)
raw_data=json.load(json_file) #...
0
votes
2
answers
277
views
Set z-order of Edges in Pandas Dataframe
I'm using OSMnx to create some plots of road networks with data shown by colour, below is an example which produces an image with colour showing betweenness centrality. The problem I'm having is that, ...
0
votes
1
answer
362
views
connecting polygons with nearest neighbor lines to create a cuttable stencil
My Python script connects separate polygons with "connector lines" based on a nearest neighbor algorithm so I can cut them out as one shape like this connected polygons.
This works fine but ...
1
vote
1
answer
1k
views
OSError: exception: access violation reading 0x0000000000000000; from generating a road map with coordinates using openstreetmap
I am attempting to build a class that takes n random coordinate locations as input and creates a rectangle out of the northmost, eastmost, southmost, and westmost location. Then, it makes a request to ...
1
vote
1
answer
924
views
Travel time - Python
Is there any way to calculate the minimum travel time from O-D route to point A, using Python and Google API or OSMnx library?
O and D refer to the Origin and Destination points, respectively.
For ...
1
vote
1
answer
816
views
Can't detect NaN values in dataframe (python)
I have a geodataframe obtained from osmnx:
cities = ox.geocode_to_gdf(['Município de Lisboa', 'Município de Oeiras', 'Município da Amadora', 'Município de Loures', 'Município de Odivelas'])
...
0
votes
1
answer
3k
views
TypeError: "Set type is unordered" in OSMnx isochrones example
Running the OSMnx isochrones example, get a TypeError: "Set type is unordered" on the last cell.
Any idea what's going wrong?
OSMnx 0.15.1 on Python 3.8.5, Pandas 1.1.1, GeoPandas 0.8.1.
It ...
3
votes
1
answer
599
views
How to get the number of roundabouts in a given city/ area in OSMnx?
I am still trying to figure out OSM and OSMnx. I want to count how many roundabouts are there in Paris for example. The problem is that many roundabouts are stored as ways, but in pieces. So, if I ...
4
votes
2
answers
2k
views
Isochrones with OSMnx
I have a large data (10k rows) of locations (lat, lon) and I would like to compute a 10min-walk isochrone starting from each point with OSMnx. (I tried with openrouteservice but have some limitations)....
1
vote
1
answer
339
views
Is there a way to get 20 or 30 km/ h speed limit roads and pedestrian only roads in OSMnx?
I am trying to get the length (in m) AND surface (in square m) of all the walkable streets in a given city, for example Paris. From the documentation, I found this code to get the area of all walkable ...
0
votes
0
answers
1k
views
ValueError: 'vertices' must be a 2D list or array with shape Nx2 (Matplotlib)
I'm trying to plot the network for a place where I want to check accessibility of my friends for me.
GDF I'm using:
bbox = [12.8881, 77.5079, 12.9918, 77.6562]
def make_gdf(file_name):
shp = pd....
0
votes
0
answers
311
views
TypeError: argument of type 'CRS' is not iterable
I'm trying to create network for a place where I want to check accessibility of my friends to me.
Importing libraries(all latest versions)
import warnings
warnings.filterwarnings("ignore")
...