Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mayer
CircularGreenSimCity
Commits
2c31e4f1
Commit
2c31e4f1
authored
Apr 11, 2024
by
Eric Duminil
Browse files
Example query
parent
a3cfa895
Changes
1
Show whitespace changes
Inline
Side-by-side
python_scripts/add_trees_to_open_street_map/add_trees.py
View file @
2c31e4f1
...
...
@@ -74,6 +74,7 @@ def get_osm_roads(bounds):
else
:
print
(
"Downloading data..."
)
# TODO: Could add trees from OSM too.
# Example query: https://overpass-turbo.eu/s/1JNc
api
=
overpy
.
Overpass
()
result
=
api
.
query
(
f
"""
way(
{
bounds
.
S
}
,
{
bounds
.
W
}
,
{
bounds
.
N
}
,
{
bounds
.
E
}
) ["highway"];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment