Skip to content

Commit 0009777

Browse files
committed
overpassify example, waiting for @gappleto97 to fix in a PR, see mvexel#87
1 parent 5edc97f commit 0009777

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

examples/overpassify_example.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env python
2+
3+
# Copyright 2015-2018 Martijn van Exel.
4+
# This file is part of the overpass-api-python-wrapper project
5+
# which is licensed under Apache 2.0.
6+
# See LICENSE.txt for the full license text.
7+
8+
"""An as yet not working example of using overpassify."""
9+
10+
import overpass
11+
from overpassify import overpassify
12+
13+
api = overpass.API()
14+
15+
16+
@api.Get
17+
@overpassify
18+
def response():
19+
Settings(timeout=1400)
20+
search = Area(3600134503) + Area(3600134502)
21+
ways = Way(search,
22+
maxspeed=None,
23+
highway=NotRegex("cycleway|footway|path|service"),
24+
access=NotRegex("private"))
25+
out(ways, body=True, geom=True, qt=True)
26+
noop()
27+
28+
29+
print(response)

0 commit comments

Comments
 (0)