-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A 'play_osm' function to create osm street networks given a bbox or placename #79
Comments
Great idea. It would be good to give the user some control over which elements are downloaded, e.g. to exclude footpaths and railway tracks if doing vehicle routing. Links that may be of use here:
|
Great idea. This is very similar to python OSMnx graph from_*. It is preferable that this would be more customizable than OSMnx network types, that are hardcoded in OSMnx code. |
Is your feature request related to a problem? Please describe.
Tidygraph has a set of
play_*
functions to create graphs from scratch according to some defined rules/algorithms. For exampleplay_node_degree
will create a graph based on a given set of node degrees. See the reference.Describe the solution you'd like
I am thinking of a function
play_osm
that allows users to create a graph based on a street network from OpenStreetMap. Inputs to this function will be forwarded directly to the osmdata loading function, so it could be a bounding box or a placename. No cleaning needs to be done (in the end, the function is just meant to "play" with an example). I suggest to not use osmdata as a dependency of the package, but just include anif(!requireNamespace)
line at the beginning of the function.The text was updated successfully, but these errors were encountered: