[
https://issues.apache.org/jira/browse/CB-6163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13939509#comment-13939509
]
Josh Soref commented on CB-6163:
--------------------------------
OK, it turns out that this is by design, see
www/Coordinates.js
var Coordinates = function(lat, lng, alt, acc, head, vel, altacc) {
this.heading = (head !== undefined ? head : null);
this.speed = (vel !== undefined ? vel : null);
if (this.speed === 0 || this.speed === null) {
this.heading = NaN;
}
Mobile Spec should be adjusted to indicate that "NaN" is expected if you aren't
moving.
> [BlackBerry10] NaN returned for Cordova Geolocation heading value
> -----------------------------------------------------------------
>
> Key: CB-6163
> URL: https://issues.apache.org/jira/browse/CB-6163
> Project: Apache Cordova
> Issue Type: Bug
> Components: BlackBerry, mobile-spec
> Affects Versions: 3.3.0
> Reporter: James Keshavarzi
>
> When using the mobile spec, a NaN value is returned for Heading when testing
> the Cordova Geolocation plugin using the Location test page.
--
This message was sent by Atlassian JIRA
(v6.2#6252)