Geolocation 为什么Appcelerator/Tianium反向地理编码突然停止工作?
我在app store中有一个应用程序,它使用from Titanium的Geolocation类将位置解析为地址 我一直工作得很好,直到本周末,事件对象给了我这个错误: 错误反向地理编码 为什么会这样?Appcelerator是否改变了我错过的东西?我找不到那样的东西 这是我的密码:Geolocation 为什么Appcelerator/Tianium反向地理编码突然停止工作?,geolocation,titanium,appcelerator,reverse-geocoding,Geolocation,Titanium,Appcelerator,Reverse Geocoding,我在app store中有一个应用程序,它使用from Titanium的Geolocation类将位置解析为地址 我一直工作得很好,直到本周末,事件对象给了我这个错误: 错误反向地理编码 为什么会这样?Appcelerator是否改变了我错过的东西?我找不到那样的东西 这是我的密码: Ti.Geolocation.reverseGeocoder(e.coords.latitude, e.coords.longitude, function (e) { if (e.error) {
Ti.Geolocation.reverseGeocoder(e.coords.latitude, e.coords.longitude, function (e) {
if (e.error) {
console.log('GPS reverseGeocoder Error' + e.error);
alert(L("location_services_error"));
activityIndicator.hide();
return;
}
if (e.places) {
activityIndicator.hide();
var p = e.places[0];
$.location.height = Ti.UI.SIZE;
$.location.value = p.street + ", " + p.city + ", " + p.country;
$.location.height = Ti.UI.SIZE;
$.locationLabel.hide();
} else {
alert(L("location_services_not_found"));
activityIndicator.hide();
}
});
使用中的一个可能值进行检查。这将让您更深入地了解出了什么问题。我得到的错误代码是“-1”。这是什么意思?