Skip to content

Commit c2db1b9

Browse files
committed
Fixed lat/long params
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 0fa1a78 commit c2db1b9

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ From terminal run your app:
3131
python app.py
3232
```
3333

34-
## [API](https://labstack.com/api) | [Forum](https://forum.labstack.com)
34+
## [Docs](https://labstack.com/docs/api) | [Forum](https://forum.labstack.com)

labstack/geocode.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,27 @@ class Geocode():
44
def __init__(self, client):
55
self.client = client
66

7-
def address(self, location, longitude=None, latitude=None, osm_tag=None, limit=None):
7+
def address(self, location, latitude=None, longitude=None, osm_tag=None,
8+
format=None, limit=None):
89
return self.client._request('GET', '/geocode/address', params={
910
'location': location,
10-
'longitude': longitude,
1111
'latitude': latitude,
12+
'longitude': longitude,
1213
'osm_tag': osm_tag,
14+
'format': format,
1315
'limit': limit
1416
})
1517

16-
def ip(self, ip):
17-
return self.client._request('GET', '/geocode/ip', params={'ip': ip})
18+
def ip(self, ip, format=None):
19+
return self.client._request('GET', '/geocode/ip', params={
20+
'ip': ip,
21+
'format': format
22+
})
1823

19-
def reverse(self, longitude, latitude, limit=None):
24+
def reverse(self, latitude, longitude, limit=None):
2025
return self.client._request('GET', '/geocode/reverse', params={
21-
'longitude': longitude,
2226
'latitude': latitude,
27+
'longitude': longitude,
28+
'format': format,
2329
'limit': limit
2430
})

setup.py

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

33
setup(
44
name='labstack',
5-
version='0.31.1',
5+
version='0.31.2',
66
description='Official Python client library for the LabStack API',
77
long_description='`<https://github.com/labstack/labstack-python>`_',
88
keywords='image compress, image resize, text summary, barcode generate, barcode scan',

0 commit comments

Comments
 (0)