map - How to sort result from foursquare place api according to distance? -
i fetching nearby restaurants foursquare api, getting json contains details of restaurants.it has "distance=xx".how can result least distance on first index of array ?
i found - "intent=match".but dont know how give in below url please me.thanks in advance
intent=match
sensitive location , query pass in, , it's used find exact matches of you're looking (e.g., joe's coffeeshop right at precise lat/lon). may or may not you're looking for, use adding parameter api call, how added categoryid
.
in general, using intent=checkin
(which call defaults to) should sufficient depending on exact requirements. returns results sorted distance takes account how check in there first result not strictly closest.
Comments
Post a Comment