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
0
votes
1 answer

OSMnx Tutorial 8 (Boeing) - Centrality

I have a two part question related to Boeing's OSMnx Tutorial 8 - Street network centrality analysis. Firstly, I have a knowledge question regarding edge closeness centrality and then a code-based question regarding edge betweenness centrality. My…
0
votes
2 answers

Error: "python setup.py egg_info" failed with error code 1" for installing osmnx

I'm trying to install a really important python package osmnx for python 3.7. Below is what I got. I searched on this for the afternoon and tried updating the setuptools but it didn't work. Microsoft Windows [Version 10.0.17134.590] (c) 2018…
Claire
  • 1
  • 1
0
votes
1 answer

Updating Anaconda fails with Remove Error

I was having trouble using Conda Forge to install packages, namely GeoPandas and OSMNX. It kept getting stuck on "solving environment." So I was trying to update my Anaconda distribution hoping that would solve the problem. I've tried conda update…
Aschharwood
  • 391
  • 1
  • 4
  • 16
0
votes
1 answer

write and read Graph, multiGraph, Digraph, MultiDigraph

Read and Write, Multigraph, MultiDiGraph ? I'm working with networkx and osmnx, And I wanted to know if there is any way to write and read a Multigraph and MultiDigraph.
harry
  • 31
  • 6
0
votes
1 answer

Recovering the node with maximum in-degree and retrieving its longitude and latitude

I am new to osmnx, openstreatmap and nominatim. I am trying to retrieve a node with the highest/maximum in-degree using in_degree_centrality networkx function.However, only degree_centrality and betweenness_centrality are present in the…
sola
  • 1
0
votes
0 answers

How do I find details of this python package (__main__)?

I am looking at this script: https://github.com/gboeing/osmnx/blob/master/osmnx/stats.py On line 15, there is this: from .simplify import clean_intersections I tried to import it but got this message: ModuleNotFoundError: No module named…
william3031
  • 1,653
  • 1
  • 18
  • 39
0
votes
0 answers

Plotting different area objects in OSMnx

I am wondering if it is possible to plot area objects from OSM through OSMnx. It seems to me, that there is an easy way only to plot buildings. But I would like to be able to plot e.g. rivers, but can't find a place to specify this. I was hoping for…
marcin
  • 3
  • 4
0
votes
1 answer

Osmnx: Removing sidewalk from one side of the street

I am trying to plot a simplified map for pedestrians in my university campus using Osmnx library with python 2.7. So far, I have this Image of the plot and as you can see, it is plotting sidewalks on both sides of the street. I was planning on…
Hrishi
  • 3
  • 2
0
votes
1 answer

Osmnx: how to make plot_shape() work in pyplot subplots?

I've been using OSMNX to extract shapes of parks from Open Street Maps. I am trying to display them as a standard pyplot subplots but I can't quite make it work directly. Say this is my array of places: places = {'Hyde Park' : 'Hyde…
puntofisso
  • 383
  • 1
  • 3
  • 17
0
votes
1 answer

osmx elevation data: no module named 'keys'

I'm coming from R and new to Python, so I assume this is a novice question, but any help would be appreciated. I'm following along with this example to add elevation data to Open Streets Map data using the OSMnx…
0
votes
2 answers

OSMnx gives "TypeError: query must be a string or a list of query strings" on basic use

After following the instructions for installation of OSMnx (including explicitly installing spatialindex) with brew install spatialindex pip install osmnx running the very first basic example of import osmnx as ox G = ox.graph_from_place('Manhattan…
orome
  • 45,163
  • 57
  • 202
  • 418
0
votes
1 answer

OSMnx Visualize the graph of edge centrality on Folium

I'm trying to plot the graph of edge centrality on the folium using the following code graph_map = ox.plot_graph_folium(G, popup_attribute='name', tiles='stamenterrain', …
Duc Vu
  • 59
  • 1
  • 6
0
votes
1 answer

OSMnx Add Title to Graph Plot

I'm using the wonderful OSMnx library created by Geoff Boeing. I am plotting a street network based on one of his tutorials. Everything works perfectly. However, I would like to plot more than 40 graphs, using different centralities. Therefore, I…
ck12
  • 53
  • 4
-1
votes
1 answer

Cannot load a graph in OSMnx

I am trying to compute the driving distance between two points using OSMnx in Python: import osmnx as ox G = ox.graph_from_place("Piedmont, California, USA", network_type="drive") However, when running this code I get the following…
LuisMoncayo
  • 125
  • 2
  • 9
-1
votes
1 answer

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) -> (2,2) -> (3,3) -> (4,4) -> (5,5) now i also…
mohsen
  • 108
  • 5