Spotify位置查询返回精度为-1
我正在尝试在Spotify应用程序中定位用户。但是,我只从Spotify中获取垃圾位置数据。承诺不会失败,但返回的精度为-1,lat/lon为200/200。有没有我错过的许可证?有人成功地集成了这个吗 守则:Spotify位置查询返回精度为-1,spotify,Spotify,我正在尝试在Spotify应用程序中定位用户。但是,我只从Spotify中获取垃圾位置数据。承诺不会失败,但返回的精度为-1,lat/lon为200/200。有没有我错过的许可证?有人成功地集成了这个吗 守则: require([ '$api/models', '$api/location', '$views/image#Image', '$views/list#List' ], function(models, Location, Image, List) { 'use strict'; v
require([
'$api/models',
'$api/location',
'$views/image#Image',
'$views/list#List'
], function(models, Location, Image, List) {
'use strict';
var loc = Location.Location.query();
loc.load('latitude', 'longitude', 'accuracy').done(function() {
console.log('Found you!', loc.latitude, loc.longitude);
window.theLocation = loc;
}).fail(function(loc, error) {
console.log("I failed!", error)
});
...
控制台:
Found you! 200 200
theLocation.accuracy
-1
theLocation.latitude
200
theLocation.longitude
200
编辑:请参见我的后续问题:不幸的是,这是不受支持的,不应该出现在文档中。我们正在处理文档,更新后将删除该文档。请查看我的后续问题: