Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2db1b9

Browse files
committed
Fixed lat/long params
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent0fa1a78 commitc2db1b9

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-
defaddress(self,location,longitude=None,latitude=None,osm_tag=None,limit=None):
7+
defaddress(self,location,latitude=None,longitude=None,osm_tag=None,
8+
format=None,limit=None):
89
returnself.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-
defip(self,ip):
17-
returnself.client._request('GET','/geocode/ip',params={'ip':ip})
18+
defip(self,ip,format=None):
19+
returnself.client._request('GET','/geocode/ip',params={
20+
'ip':ip,
21+
'format':format
22+
})
1823

19-
defreverse(self,longitude,latitude,limit=None):
24+
defreverse(self,latitude,longitude,limit=None):
2025
returnself.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)

[8]ページ先頭

©2009-2025 Movatter.jp