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.

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
1 vote
0 answers
106 views

a-star algorithm visualisation

I'm trying to display the path found by the astar algorithm on a map using OSMnx, but I'm having a lot of issues displaying the nodes, edges & path on the graph. I'm pretty new to coding, I took a ...
niko's user avatar
  • 11
2 votes
1 answer
38 views

`osmnx.shortest_path` returns `None` for valid origin and destination nodes

Description When calculating the shortest path between two locations with OSMnx, ox.shortest_path() failed to get any route and returns None origin_lat=42.482, origin_lon=-70.910, dest_lat=42.472, ...
xushen0118's user avatar
0 votes
1 answer
44 views

OpenStreetMap - Point of Interest metadata

There are 434 columns of data extracted from osmnx for Christchurch New Zealand for a single tag. The code: amenity = ox.geometries_from_place(location, tags={'amenity': True} Is there any metadata ...
Goldie's user avatar
  • 1
0 votes
1 answer
42 views

Setting a custom_filter in graph_from_bbox results in more nodes than not having a filter

I want to download a lean map (less number of nodes), removing walkways or service roads, and removing the nodes that are not intersections of two or more streets. I made a call to graph_from_bbox and ...
earendil_the_mariner'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
0 answers
86 views

OSMnx route_to_gdf function

I just have a question on the usage of the 'weight' argument in the route_to_gdf function. In https://osmnx.readthedocs.io/en/stable/user-reference.html, it says "weight (string) – if there are ...
Z. G.'s user avatar
  • 31
1 vote
1 answer
242 views

OSMNX: Dealing with empty dataframe of attributes when using the features module

I am confused with the usage of the osmnx.features module. My goal is to find all hotels and motels in specified municipalities of Switzerland. First, I look for the geometry of the municipality and ...
Antonin's user avatar
  • 1,820
0 votes
0 answers
80 views

Calculation of walking distances using OSM data in Python returns 0

Description: I'm working on a project where I need to calculate walking distances between various locations using OpenStreetMap (OSM) data in Python. I'm using the osmnx library to retrieve pedestrian ...
Wafa Dhool's user avatar
-1 votes
1 answer
76 views

Calling OSMNX Graph_From_Point function in a Flask Application results in an Infinite Loop

I am building a Flask application where the ultimate goal is to calculate the midpoint of two or more origin latitude and longitude coordinates. I am hoping to use the OSMNX python package to produce ...
Moises Herrera's user avatar
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 ...
Alessandro Zanoli's user avatar
0 votes
0 answers
24 views

Issues with Repeated Nearest Nodes in GPS Data Interpolation Using NetworkX and OSMnx

I am working on a project that involves interpolating GPS points using the OpenStreetMap (OSM) data with NetworkX and OSMnx in Python. The goal is to interpolate additional GPS points if the distance ...
arif hoq's user avatar
0 votes
1 answer
134 views

Why am I getting different length and travel time from OSMnx or networkx when comparing it with Google Maps?

I'm new working with OSM data, OSMnx and networkx libraries, so if there's a better way to accomplish on getting shortest path from A to B locations, I'll appreciate any advice. I'm trying to get ...
Gustacro'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
0 votes
0 answers
75 views

Obtaining List of Coordinates for Route Along Nearest Edge Using OSMnx, Python and Leaflet

I am currently working on a mapping project using Leaflet, where I need to obtain a list of coordinates representing a route between an origin marker and a destination marker. Specifically, I want the ...
Jorge Emilio Peña's user avatar

15 30 50 per page
1
2
3 4 5
43