Skip to content

Commit

Permalink
fixing readme, 0.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mvexel committed Aug 21, 2016
1 parent cfb9407 commit 134b3ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ could do this for example:

```python
print [(feature['tags']['name'], feature['id']) for feature in response['elements']]
[(u'Salt Lake City', 150935219), (u'Salt Lake City', 585370637), (u'Salt Lake City', 1615721573)]```
[(u'Salt Lake City', 150935219), (u'Salt Lake City', 585370637), (u'Salt Lake City', 1615721573)]
```

You can specify the format of the response. By default, you will get GeoJSON using the `responseformat` parameter. Alternatives are plain JSON (`json`) and OSM XML (`xml`), as ouput directly by the Overpass API.

Expand Down Expand Up @@ -81,7 +82,8 @@ to the constructor:

```python
map_query = overpass.MapQuery(50.746,7.154,50.748,7.157)
response = api.Get(map_query)```
response = api.Get(map_query)
```

#### WayQuery

Expand All @@ -91,7 +93,8 @@ constructor:

```python
way_query = overpass.WayQuery('[name="Highway 51"]')
response = api.Get(way_query)```
response = api.Get(way_query)
```

## Testing

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
setup(
name='overpass',
packages=['overpass'],
version='0.5.4',
version='0.5.5',
description='Python wrapper for the OpenStreetMap Overpass API',
long_description=long_description,
author='Martijn van Exel',
Expand Down

0 comments on commit 134b3ff

Please sign in to comment.