2.0.0 • Published 5 years ago

biz2creditpeopleinrange v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Find the people in range

Install the module

npm i biz2creditpeopleinrange

How to use

1. Require the module (var Search = require("biz2creditpeopleinrange"))

2. Create a new Instance of search (var s=new Search()). Initialize with source latitude and longitude. If not given default will be taken as Dublin (lat: 53.339428,long: -6.257664).

3. Call solve method py passing the path of .txt file and range. Default range is 100km or 100000meters.

Output will be list of user name and their user_id sorted by user_id

The text file should have should have json data in below format:

{"latitude": "52.986375", "user_id": 12, "name": "Christina McArdle", "longitude": "-6.043701"}