Foursquare API 纬度经度没有 return 结果

Foursquare API latitude longitude doesn't return results

我正在为 foursquare api 进行此 http 调用,如果我使用 'll' 参数,我不会得到任何结果。一旦我删除它并输入 'near: 10011',我就会得到结果。我究竟做错了什么?我需要使用纬度经度。

var data = $http({
      url: 'https://api.foursquare.com/v2/venues/explore',
      method: 'jsonp',
      params: {query: selectedQuery, limit:7, ll: '44.3,37.2', client_id: clientId, client_secret: clientSecret, price: selectedPrice.priceValue, v: 20140806, callback: 'JSON_CALLBACK'}
      });

您应该解决返回的承诺:

var data = function () {
 return $http({
   url: 'https://api.foursquare.com/v2/venues/explore',
   method: 'jsonp',
   params: {query: selectedQuery, limit:7, ll: '44.3,37.2', client_id: clientId, client_secret: clientSecret, price: selectedPrice.priceValue, v: 20140806, callback: 'JSON_CALLBACK'}
 }).then(function success (response) {
     return response; 
    }, 
    function error (response) {
     return response;
    });
//Call the function 
data();

尝试删除 ll: 44.3,37.2 等坐标周围的引号。