Skip to main content

All Questions

Tagged with
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
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, ...
Dmitriy's user avatar
0 votes
1 answer
62 views

Querying POIS from OSM using Python

I want to query POIS from OSM and plot the result by folium. There is a problem with the tags I am passing them. code # The bounding box north = 30.910093 south = 25.00042 east = -79.450636 west = -...
Ahmed's user avatar
  • 13
-1 votes
1 answer
442 views

How can I show routes on a map in Python ( Jupyter Notebooks)?

I have an excel file containing some latitudes and longitudes in Iran. I want to show the routes to each of these locations accurately on the map in python in Jupyter. I have tried many ways and I don'...
Arman Alaei's user avatar
0 votes
1 answer
276 views

Colorize a path between 2 points in OSMnx

In my code below I'm creating a path between 2 points and when I run it, the path is blue. I've been trying the change the color but I couldn't figure it out. can someone help me, please? Thank you! ...
Itamar Nahum's user avatar
0 votes
2 answers
1k views

How do I solve "ValueError: Found no graph nodes within the requested polygon" in OSMnx

I'm working on isochrones building them for some schools just to show accessibility. Here is my code: # importing the required libraries import osmnx as ox import pandas as pd import warnings import ...
Steel8's user avatar
  • 155
1 vote
2 answers
2k views

How do I Plot multiple Isochrones Polygons using Python OSMnx library?

I'm trying to build isochrones for some schools, to understand the accessibility. My mode of travelling is "walk" and I wanted to create a list of at least 2 travel times, 30 minutes and 1 ...
Steel8's user avatar
  • 155
0 votes
1 answer
1k views

How to plot in edges and routes on the same folium in osmnx

I'm trying to plot edges and routes in an interactive map by using: ox.plot_graph_folium or ox.plot_routes_folium. # plot the street network with folium m1 = ox.plot_graph_folium(G, popup_attribute=&...
user17359832's user avatar
0 votes
1 answer
356 views

Excluding points within list of buildings' shapes in Python

I have a dataframe that contains thousands of points with geolocation (longitude, latitude) for Washington D.C. The following is a snippet of it: import pandas as pd df = pd.DataFrame({'lat': [ 38....
Luis's user avatar
  • 318
0 votes
1 answer
2k views

Networkx OSMNX and Folium plotting different coloured edges [duplicate]

I have been trying to overlay different osmnx plots onto folium but I have been unable to. I want to achieve the same thing as shown in the image below with a simple osmnx plot but instead on folium ...
Rishan's user avatar
  • 105
0 votes
1 answer
3k views

Plot multiple routes using osmnx

I'm trying to plot multiple routes but error is popping up - networkx.exception.NetworkXError: Node [20461931, 75901933] in sequence nbunch is not a valid node. Plotting individual route is no more ...
Area51's user avatar
  • 3
1 vote
1 answer
577 views

OSMnx has no attribute 'speed'

I've successfully downloaded the 0.14.0 version of osmnx: But the output says AttributeError: module 'osmnx' has no attribute 'speed'. What can I do to solve this problem? My python version is 3.8.1 ...
李祐齊's user avatar
5 votes
1 answer
4k views

OSMnx: plot a network on an interactive web map with different colours per infrastructure

I'm trying to plot a network where edges have different colors according to their Opens street map attribute ('highway'). It works if I use ox.graph, however, this generates a static map. If I use ox....
Giulia R's user avatar