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.

OSMnx is a package to download, model, analyze, and visualize street networks and other geospatial features from . OSMnx is built on top of and . 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.

596 questions
-1
votes
1 answer

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't have access to paid APIs. I used osmnx and it…
-1
votes
1 answer

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"],brt_stops_reproj["y"])) But I encounter TypeError: Must pass list-like as…
-1
votes
1 answer

Geometry is an OSMnx network

I am using OSMnx to download and simplify a road network. But the problem I have is that once I simplify, I cannot preserve the precise geometry/geospatial information of links. The following figure shows the road network drawn from the road network…
Nasir
  • 1
-1
votes
1 answer

What is CRS/units in osmnx python? How to find distance between road edge and a given point in openstreetmap?

Here is a docs: osmnx.distance.nearest_edges(G, X, Y, interpolate=None, return_dist=False) Find the nearest edge to a point or to each of several points. If X and Y are single coordinate values, this will return the nearest edge to that point. If X…
-1
votes
1 answer

OSMNx: How to return OSM roads using graph_from_point even if its extreme end nodes are not within the distance

I want to fetch the road network inside the blue circle. But i am not able to do so as its far end nodes are well beyond 100 meter from the point. lng,lat=8.89458178871303, 41.657804855447374 road_filter = …
aman
  • 1,875
  • 4
  • 18
  • 27
-1
votes
1 answer

OSMNX: how to re-alive depreciated function "ox.distance.get_nearest_edge"?

I have a VERY LONG script including the function "ox.distance.get_nearest_edge". When I run it under my local computer with osmnx version 1.1.1, I get a warning that the function is deprecated and may be removed in a future release. I now need to…
PinkyBrain
  • 19
  • 5
-1
votes
1 answer

Is there any ways or functions to connect and interpolate points into the Multidigraph generated by OSMnx?

New to GIS and OSMnx, thank you for your help! Konwn: One area generated by Osmnx, Several points with (lon, lat) coordinates in the area (I think that is what we call 'POI') Question: How to connect and interpolate this ponits to the area, and then…
wzwqlx
  • 1
  • 3
-1
votes
1 answer

Osmnx basic stats from gdf

I am trying to calculate the basic stats of a graph created from a gdf using the following code: ox.utiles_graph.graph_from_gdf(n,e) Nodes and edges have been saved previously and resulted from: G = graph.graph_from_place(some_place_name) n,e =…
Määäx
  • 39
  • 3
-1
votes
1 answer

Incorrect results using OSMNX nearest_edges

I am writing some code to obtain the road centerline data from OSM based on GPS data for a given path that was driven. I am using OSMNX to interface with the OSM data but get strange results when using nearest_edges to match the GPS data from my…
ScottP
  • 1
  • 3
-1
votes
1 answer

OSMNX: get external coordinates of a building giving a coordinate where it is located

hoping someone can help me I am trying to retrieve the exterior coordinates of the nearest building given a coordinate/geolocalization. I can get all external coordinates of a building giving an address (code below) but I would need to retrieve same…
Ana
  • 103
  • 1
  • 8
-1
votes
1 answer

Get the ID node from coordinates PYTHON OSMNX

I'm currently trying to get the ID node from this coordinates (-70.74213872499999, -33.411204874999996). I was using the ox.get_nearest_node() function, but unfortunately i realized it is deprecated. There is any alternative i can use? The…
Atria
  • 7
  • 2
-1
votes
2 answers

OSMNx : get coordinates of nodes/corners/edges of polygons/buildings

I am trying to retrieve the coordinates of all nodes/corners/edges of each commercial building in a list. E.g. for the supermarket Aldi in Macclesfield (UK), I can get from the UI 10 nodes (all the corners/edges of the supermarket) but I can only…
Ana
  • 103
  • 1
  • 8
-1
votes
1 answer

Is there a way to download only vehicle networks from OSM as .osm file?

I need to download vehicle network only from OSM, and have the ouput be as normal .osm file, that can then be used in OSMnx (that would be the same or similar, as if i did osmnx.graph_from_place('Piedmont, CA, USA', network_type='drive')), i tried…
Matyxus
  • 13
  • 2
-1
votes
1 answer

Osmnx: get the location by gps coordinate

I'm new to the Osmnx, is there any function allows me to get the name of province and city by the GPS coordinates(latitude, longitude) ?
Joey Lu
  • 13
  • 2
-1
votes
1 answer

How to parallelize route calculation with osmnx?

I am trying to parallelize my code. What I want it to do is calculate for every target all the shortest paths between the target and the rest of the networks nodes. For instance, if I have a network of 10000 nodes and I have 150 targets, then for…
DPM
  • 845
  • 7
  • 33
1 2 3
39
40