@tride/gojek-handler
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -258,4 +258,5 @@ "use strict"; | ||
async reverseGeocode({ latitude, longitude }) { | ||
const latLong = `${latitude}${longitude}`; | ||
const { data: { data } } = await this.$http({ | ||
const latLong = `${latitude},${longitude}`; | ||
const { data } = await this.$http({ | ||
method: "get", | ||
@@ -262,0 +263,0 @@ url: "/gojek/poi/reverse-geocode", |
{ | ||
"name": "@tride/gojek-handler", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Gojek Handler", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
11
test.js
@@ -90,3 +90,3 @@ "use strict"; | ||
//-- Canceled | ||
getCurrentBookingByOrderNo('RB-929194418'); | ||
// getCurrentBookingByOrderNo('RB-929194418'); | ||
//-- Completed | ||
@@ -97,3 +97,2 @@ // getCurrentBookingByOrderNo('RB-928148964'); | ||
// async function getAcceptedCurrentBookingByOrderNo(orderNo) { | ||
@@ -120,1 +119,9 @@ // let acceptedCurrentBookingDetail = await gojek.getAcceptedCurrentBookingByOrderNo( | ||
// .catch(console.error); | ||
gojek | ||
.reverseGeocode({ | ||
longitude: 106.78162, | ||
latitude: -6.260719 | ||
}) | ||
.then(console.log) | ||
.catch(console.error); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56897
374