Skip to content

A 'play_osm' function to create osm street networks given a bbox or placename #79

@luukvdmeer

Description

@luukvdmeer

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 example play_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 an if(!requireNamespace) line at the beginning of the function.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions