Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Master
-
None
-
None
Description
On iOS the values heading and speed can be negative values according to the documentation of CLLocation. These values are directly exposed by the Coordinates object, which leads to unwanted bahavior. According to the w3c specification these values are only allows to be null or greater 0.
Following links for further informations:
- https://dev.w3.org/geo/api/spec-source.html#heading
- https://dev.w3.org/geo/api/spec-source.html#speed
- https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLLocation_Class/#//apple_ref/occ/instp/CLLocation/course
- https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLLocation_Class/#//apple_ref/occ/instp/CLLocation/speed
I already provided a pull request: https://github.com/apache/cordova-plugin-geolocation/pull/77