You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Josh Soref (JIRA)" <ji...@apache.org> on 2014/03/18 18:33:43 UTC
[jira] [Commented] (CB-6163) [BlackBerry10] NaN returned for
Cordova Geolocation heading value
[ 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)