Commit 28f00139 authored by keesschollaart81's avatar keesschollaart81

Callback added in stop() and 'speed' property renamed to 'velocity'

parent 39fa66bf
...@@ -148,6 +148,7 @@ namespace Cordova.Extension.Commands ...@@ -148,6 +148,7 @@ namespace Cordova.Extension.Commands
{ {
RunningInBackground = false; RunningInBackground = false;
StopGeolocatorIfActive(); StopGeolocatorIfActive();
DispatchCommandResult(new PluginResult(PluginResult.Status.OK));
} }
private void StopGeolocatorIfActive() private void StopGeolocatorIfActive()
......
...@@ -19,7 +19,7 @@ namespace Cordova.Extension.Commands ...@@ -19,7 +19,7 @@ namespace Cordova.Extension.Commands
"\"altitude\": {3}," + "\"altitude\": {3}," +
"\"altitudeAccuracy\": {4}," + "\"altitudeAccuracy\": {4}," +
"\"heading\": {5}," + "\"heading\": {5}," +
"\"speed\": {6}," + "\"velocity\": {6}," +
"\"timestamp\": {7}" + "\"timestamp\": {7}" +
"}}" "}}"
, geocoordinate.Accuracy.ToString(numberFormatInfo) , geocoordinate.Accuracy.ToString(numberFormatInfo)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment