Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ The module is not on PyPi yet.
## Use it

```python
>>> from overpass import Overpass
>>> api = Overpass.API()
>>> import overpass
>>> api = overpass.API()
>>> response = api.Get('node["name"="Salt Lake City"]')
```

Expand All @@ -36,15 +36,15 @@ The API takes a few parameters:
The default endpoint is `http://overpass-api.de/api/interpreter` but you can pass in the rambler instance (`http://overpass.osm.rambler.ru/cgi/interpreter`) or your own:

```python
api = Overpass.API(endpoint=http://overpass.myserver/interpreter)
api = overpass.API(endpoint=http://overpass.myserver/interpreter)
```

#### `timeout`

The default timeout is 25 seconds, but you can set it to whatever you want.

```python
api = Overpass.API(timeout=600)
api = overpass.API(timeout=600)
```

#### `debug`
Expand Down
9 changes: 9 additions & 0 deletions overpass/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-

"""Thin wrapper around the OpenStreetMap Overpass API."""

__title__ = 'overpass'
__version__ = '0.0.1'
__license__ = 'Apache 2.0'

from .api import API
File renamed without changes.
6 changes: 3 additions & 3 deletions test_api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from overpass import Overpass
import overpass


class TestAPI:

def test_initialize_api(self):
api = Overpass.API()
assert isinstance(api, Overpass.API)
api = overpass.API()
assert isinstance(api, overpass.API)
assert api.debug == False