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
1 year ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Example query
parent
a3cfa895
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python_scripts/add_trees_to_open_street_map/add_trees.py
+1
-0
python_scripts/add_trees_to_open_street_map/add_trees.py
with
1 addition
and
0 deletions
+1
-0
python_scripts/add_trees_to_open_street_map/add_trees.py
+
1
-
0
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"];
...
...
This diff is collapsed.
Click to expand it.
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