Skip to content

Commit 0f8d3f0

Browse files
committed
Updated readme.
1 parent 96dc922 commit 0f8d3f0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,21 @@ Setting this to `True` will get you debug output.
5151

5252
This takes a list in the form `[minlon, minlat, maxlon, maxlat]`, the default is the world: `[-180.0, -90.0, 180.0, 90.0]`
5353

54+
### Simple queries
55+
56+
In addition to just send you query and parse it, the wrapper provides shortcuts for often used map queries. To use them, just pass them like to normal query to the API.
57+
58+
#### MapQuery
59+
60+
Up to now, only a query for [complete ways and relations](http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide#Completed_ways_and_relations) in a bounding box is supported.
61+
You just pass the bounding box to the constructor:
62+
63+
```python
64+
>>> from overpass import queries
65+
>>> map_query = queries.MapQuery((50.746,7.154,50.748,7.157))
66+
>>> response = api.Get(map_query)
67+
```
68+
5469
## Need help? Want feature?
5570

5671
Create a [new issue](https://github.com/mvexel/overpass-api-python-wrapper/issues).

0 commit comments

Comments
 (0)