capacitor-google-navigation 0.0.9 → 0.1.0

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.
@@ -59,16 +59,10 @@ public class GoogleNavigation {
59
59
  return;
60
60
  }
61
61
 
62
- Waypoint destination;
63
- try {
64
- destination = new Waypoint.Builder()
65
- .setLatLng(lat, lng)
66
- .setTitle("Destination")
67
- .build();
68
- } catch (Waypoint.UnsupportedTravelModeException e) {
69
- callback.onResult(false, "Unsupported travel mode");
70
- return;
71
- }
62
+ Waypoint destination = new Waypoint.Builder()
63
+ .setLatLng(lat, lng)
64
+ .setTitle("Destination")
65
+ .build();
72
66
 
73
67
  RoutingOptions.TravelMode mode;
74
68
  switch (travelMode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-google-navigation",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "description": "Google maps turn by turn navigation for capcitor",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",