tradly 1.0.49 → 1.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Roots/App.js +7 -0
- package/package.json +1 -1
package/Roots/App.js
CHANGED
|
@@ -101,6 +101,13 @@ class App {
|
|
|
101
101
|
else { return responseJson }
|
|
102
102
|
} catch (error) { return error }
|
|
103
103
|
}
|
|
104
|
+
async reverseGeoCodingAddress(param={lat,long,authKey}) {
|
|
105
|
+
let url = `/${param.lat}/${param.long}`;
|
|
106
|
+
try { const [error, responseJson] = await network.networkCall({path:ADDRESS + url,method:Method.GET,authKey:param.authKey});
|
|
107
|
+
if (error) { return error }
|
|
108
|
+
else { return responseJson }
|
|
109
|
+
} catch (error) { return error }
|
|
110
|
+
}
|
|
104
111
|
async deleteAddress(param={id,authKey}) {
|
|
105
112
|
try { const [error, responseJson] = await network.networkCall({path:ADDRESS + `/${param.id}`,method:Method.DELETE,authKey:param.authKey});
|
|
106
113
|
if (error) { return error }
|