Skip to content

Commit 5fc9e83

Browse files
committed
Fixed lat/long params
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 14057a8 commit 5fc9e83

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ From terminal run your app:
3434
node app.js
3535
```
3636

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

lib/geocode.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ class Geocode {
99
}, options) , null, true)
1010
}
1111

12-
ip(ip) {
13-
return this.client._request('GET', '/geocode/ip', {ip}, null, true)
12+
ip(ip, options) {
13+
return this.client._request('GET', '/geocode/ip', Object.assign({
14+
ip
15+
}, options) , null, true)
1416
}
1517

16-
reverse(longitude, latitude, options) {
18+
reverse(latitude, longitude, options) {
1719
return this.client._request('GET', '/geocode/reverse', Object.assign({
18-
longitude,
19-
latitude
20+
latitude,
21+
longitude
2022
}, options), null, true)
2123
}
2224
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "labstack",
3-
"version": "0.31.2",
3+
"version": "0.31.3",
44
"description": "Official Node.js client library for the LabStack platform",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)