forked from mvexel/overpass-api-python-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overpassify example, waiting for @gappleto97 to fix in a PR, see mvex…
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env python | ||
|
||
# Copyright 2015-2018 Martijn van Exel. | ||
# This file is part of the overpass-api-python-wrapper project | ||
# which is licensed under Apache 2.0. | ||
# See LICENSE.txt for the full license text. | ||
|
||
"""An as yet not working example of using overpassify.""" | ||
|
||
import overpass | ||
from overpassify import overpassify | ||
|
||
api = overpass.API() | ||
|
||
|
||
@api.Get | ||
@overpassify | ||
def response(): | ||
Settings(timeout=1400) | ||
search = Area(3600134503) + Area(3600134502) | ||
ways = Way(search, | ||
maxspeed=None, | ||
highway=NotRegex("cycleway|footway|path|service"), | ||
access=NotRegex("private")) | ||
out(ways, body=True, geom=True, qt=True) | ||
noop() | ||
|
||
|
||
print(response) |