1.0.4 • Published 5 years ago

text-to-json-by-distance v1.0.4

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

plain-text-data-to-json

Transform a text file into JSON format along with filtering data based on specified distance from a provided lattitude longitude.

Installation

npm:

npm install plain-text-data-to-json

Usage

var filterUserByDistance = require('filter-users-by-distance')

filterUserByDistance(fileUrl,targetCoords,distanceInKm).then(function(filteredUserData){
    //Do suff with data here
})
.catch(function(err){
    //error message with failure reason
});

Data Types

ParameterTyoeExample
fileUrlstring/home/amit/exaple.txt
targetCordsobject{latitude:53.339428,longitude:-6.257664}
distanceInKmstring/numberIf specified, use code page when appropriate **
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago