@capgo/nativegeocoder 0.0.1 → 0.1.1

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.
@@ -28,8 +28,8 @@ public class NativeGeocoderPlugin extends Plugin {
28
28
  }
29
29
  @PluginMethod
30
30
  public void forwardGeocode(PluginCall call) {
31
- Number latitude = call.getNumber("latitude");
32
- Number longitude = call.getNumber("longitude");
31
+ Number latitude = call.getDouble("latitude");
32
+ Number longitude = call.getDouble("longitude");
33
33
  if (latitude == null || longitude == null) {
34
34
  call.reject("Missing latitude or longitude");
35
35
  return;
@@ -18,11 +18,11 @@ public class NativeGeocoderPlugin: CAPPlugin {
18
18
  }
19
19
 
20
20
  @objc func forwardGeocode(_ call: CAPPluginCall) {
21
- guard let latitude = call.getNumber("latitude") else {
21
+ guard let latitude = call.getDouble("latitude") else {
22
22
  call.reject("Missing latitude")
23
23
  return
24
24
  }
25
- guard let longitude = call.getNumber("longitude") else {
25
+ guard let longitude = call.getDouble("longitude") else {
26
26
  call.reject("Missing longitude")
27
27
  return
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/nativegeocoder",
3
- "version": "0.0.1",
3
+ "version": "0.1.1",
4
4
  "description": "Capacitor plugin for native forward and reverse geocoding",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",