Skip to content

Commit

Permalink
overpassify example, waiting for @gappleto97 to fix in a PR, see mvex…
Browse files Browse the repository at this point in the history
  • Loading branch information
mvexel committed Apr 6, 2018
1 parent 5edc97f commit 0009777
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions examples/overpassify_example.py
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)

0 comments on commit 0009777

Please sign in to comment.