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
}
}
Fixed with PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/246
Closing as resolved.