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

Add option for importing custom OSM tags #38

Open
leo-desbureaux-tellae opened this issue Jan 11, 2022 · 0 comments
Open

Add option for importing custom OSM tags #38

leo-desbureaux-tellae opened this issue Jan 11, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@leo-desbureaux-tellae
Copy link
Contributor

leo-desbureaux-tellae commented Jan 11, 2022

Following #37, it appears that we may need additional OSM tags than those kept by osmnx (see useful_tags_way here).
An option should be added to the generate_osm_graph script and the corresponding function import_osm_graph in utils.py.

To specify additional tags to keep when extracting with osmnx, we can do this:

ox.config(useful_tags_way=ox.settings.useful_tags_way + ['cycleway'])

This is not very nice since we have to list manually all relevant tags (for instance, we may want to add 'cycleway:left' and 'cycleway:right' here). However, this seems inevitable regarding the number of tags OSM proposes.

@leo-desbureaux-tellae leo-desbureaux-tellae added the enhancement New feature or request label Jan 11, 2022
@leo-desbureaux-tellae leo-desbureaux-tellae added io Inputs/Outputs and removed io Inputs/Outputs labels Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant