Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16783] BlackBerry: Ti.Geolocation.getCurrentPosition working fine but pass different data

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2014-05-29T07:32:59.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsBlackBerry
Labelslook1, parity
ReporterHazem Khaled
AssigneePedro Enrique
Created2014-02-16T22:00:38.000+0000
Updated2017-03-14T21:08:39.000+0000

Description

Issue description

Titanium.Geolocation.getCurrentPosition() working fine, but LocationResults pass to callback function without success, or coords.

Sample code

Ti.Geolocation.getCurrentPosition(function(e) {
	Ti.API.info(JSON.stringify(e));
});

Result on BlackBerry

{
	"accuracy" : 66,
	"altitude" : null,
	"altitudeAccuracy" : -1,
	"direction" : -1,
	"groundSpeed" : -1,
	"heading" : 4.068092346191406,
	"horizontalAccuracy" : 66,
	"latitude" : 30.15041732788086,
	"longitude" : 31.39896583557129,
	"magneticVariation" : 4.068092346191406,
	"speed" : -1,
	"timestamp" : 1392587571200,
	"verticalAccuracy" : -1,
	"verticalSpeed" : -1
}

Result on iOS

Same like http://docs.appcelerator.com/titanium/latest/#!/api/LocationResults)
{
	"code" : 0,
	"type" : "location",
	"source" : {},
	"success" : true,
	"coords" : {
		"timestamp" : 1392587804475,
		"altitude" : 0,
		"speed" : -1,
		"latitude" : 23,
		"longitude" : 55,
		"accuracy" : 5,
		"altitudeAccuracy" : -1,
		"heading" : -1
	}
}

Comments

  1. Pedro Enrique 2014-05-29

    Fixed with PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/246
  2. Eric Merriman 2017-03-14

    Closing as resolved.

JSON Source