Skip to content

Commit f7e8612

Browse files
committed
adding WayQuery to __init__, fixing way query
1 parent 9afd3ed commit f7e8612

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

overpass/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
__license__ = 'Apache 2.0'
88

99
from .api import API
10-
from .queries import MapQuery
10+
from .queries import MapQuery, WayQuery

overpass/queries.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
class MapQuery(object):
5+
56
"""Query to retrieve complete ways and relations in an area."""
67

78
_QUERY_TEMPLATE = "(node({bbox[0]},{bbox[1]},{bbox[2]},{bbox[2]});<;);"
@@ -18,9 +19,10 @@ def __str__(self):
1819

1920

2021
class WayQuery(object):
22+
2123
"""Query to retrieve a set of ways and their dependent nodes satisfying the input parameters"""
2224

23-
_QUERY_TEMPLATE = "way{query_parameters};(_.;>;);"
25+
_QUERY_TEMPLATE = "(way{query_parameters};(_.;>;););"
2426

2527
def __init__(self, query_parameters):
2628
"""

0 commit comments

Comments
 (0)