Quantcast
Channel: Active questions tagged instafeedjs+jquery+javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 32

Specifying the radius distance for latitude and longitude in Instafeed.js

$
0
0

Is there a way to specify the radius distance of the lat + long locationID in instafeed.js?

For example the following code will return photos tagged with the location for the Eiffel Tower and then filtered for some hashtag. Is there a way to specify a radius of say a few kilometers or something like that around the location point?

var mylocation = 54115074; //must be a number! 

var feed = new Instafeed({
  get: 'location',
  locationId: mylocation,

  clientId: 'someId', //change this with the client id you get from Instagram

  filter: function(image) {
    return (image.tags.indexOf('myTag') >= 0);
  }
});
feed.run();

Viewing all articles
Browse latest Browse all 32

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>