Skip to content
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

Open
luukvdmeer opened this issue Oct 21, 2020 · 12 comments
Assignees
Labels
feature 🎁 Request a new feature help wanted 🆘 Input from others would be helpful

Comments

@luukvdmeer
Copy link
Owner

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.

@luukvdmeer luukvdmeer added feature 🎁 Request a new feature low priority 💤 Would be nice to have but not necessary labels Oct 21, 2020
@luukvdmeer luukvdmeer changed the title A 'play_osm' function to create osm street networks given a bounding box or placename A 'play_osm' function to create osm street networks given a bbox or placename Oct 21, 2020
@Robinlovelace
Copy link
Collaborator

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:

@idshklein
Copy link

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.
In addition, be advised the the current OSMdata package doesn't support using the overpass API (poly:...) selection, rather only bbox, to the best of my knowledge,

@luukvdmeer luukvdmeer removed the low priority 💤 Would be nice to have but not necessary label Dec 16, 2020
@luukvdmeer luukvdmeer added the help wanted 🆘 Input from others would be helpful label Jan 30, 2021
@psychemedia

This comment has been minimized.

@loreabad6

This comment has been minimized.

@agila5

This comment has been minimized.

@psychemedia

This comment has been minimized.

@agila5

This comment has been minimized.

@luukvdmeer

This comment has been minimized.

@psychemedia

This comment has been minimized.

@psychemedia

This comment has been minimized.

@loreabad6

This comment has been minimized.

@psychemedia

This comment has been minimized.

@luukvdmeer luukvdmeer self-assigned this Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🎁 Request a new feature help wanted 🆘 Input from others would be helpful
Projects
None yet
Development

No branches or pull requests

6 participants