Skip to content

Add network_type argument to add_osm_feature (or do it a different way) #167

@Robinlovelace

Description

@Robinlovelace

I think there is are advantages of having this in osmdata instead of other pkgs such as dodgr.

I've thought about this before, but am finally opening opening this issue after trying:

import networkx as nx
import osmnx as ox
import requests
import matplotlib.cm as cm
import matplotlib.colors as colors
# after fixing a couple of issues, e.g. with https://github.com/gboeing/osmnx/issues/45 and:
# Error in py_call_impl(callable, dots$args, dots$keywords) : 
#   ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['/home/robin/.local/lib/python3.6/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version. 
# ... I can do this:
G = ox.graph_from_place('leeds', network_type='drive')
ox.plot_graph(ox.project_graph(G)) # note this was sloooow!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions