npm install invitepeople
const Invite = require(‘invitepeople’);
It takes three argument
- List of users (Array list)
- Range (Distance in KM within which API need to shortlist the users)
- Destination Address (latitude & Longitude of destination dublin)
var users = new Invite(customerList,100,{latitude:53.34232,longitude:-6.98765})
Return type is Array list with sorted list of customer according to their user_id.
users.filter()
var invite = require('invitepeople');
result = new invite(value, range, destination);
result.filter().forEach( val => {
console.log(val)
})