
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
GPS related functionalities. For getting and deleting gps info on an image one need to install exiftool.
http://www.sno.phy.queensu.ca/~phil/exiftool/index.html
Make sure exiftool is executable. if you have to install it manually on linux you can try ./scripts/install_exiftool.sh
Calculate distance of 2 given points
lng1
longitude of point 1 in decimal degreeslat1
latitude of point 1 in decimal degreeslng2
longitude of point 2 in decimal degreeslat2
latitude of point 2 in decimal degreesCalculate total distance of a serial of points
points
array of point, example
[{lat: 59.19288511388004, lng: 17.66255029477179 },{ lat: 59.19290036894381, lng: 17.662896132096648 }]
lat
latitude of the center, in decimal degrees.lng
longitude of the center, in decimal degrees.distance
radius that spans the bounding box, in meters.return an array containing 2 points that represent the bounding box.
points
list of coordinate, each point with properties lat and lngreturn Object/point with lat and lng
Convert decimal degrees to degrees, minutes and seconds (return an object)
Return a string representation in DMS format, ie 59° 19' 59.88" N
Return a string representation in DMS format, ie 18° 3' 0" E
Convert to decimal degrees
data
xml string of gpx formatcallback
function which take 2 arguments, error and resultfilename
file to parse the data in of gpx formatcallback
function which take 2 arguments, error and resulturl
where the gpx data is locatedcallback
function(error, result)trackingResult
callback
function(error, result)name
the name you want to call for this gpx documentpoints
Track points for instance returned value from gpxParse or tcxParsecallback
function(error, result)data
xml string of tcx formatcallback
function which take 2 arguments, error and resultfilename
file to parse the data in of tcx formatcallback
function which take 2 arguments, error and resulturl
where the tcx data is locatedcallback
function(error, result)points
Track points for instance returned value from gpxParsecallback
function(error, result) result is a TrackingResult (see calc.js for details)fromIndex
Integer from 0toIndex
Integer from 1image
path to image to get GPS infocallback
function(error, result)image
path to image to delete GPS infocallback
function(error, result) result is booleanlatitude
decimal latitude of the gps positionlongitude
decimal longitude of the gps positionprecision
number of chars to represent the gps position, default 12hash
hashed string representing the gps positionFAQs
GPS related functionalities
The npm package gps-util receives a total of 140 weekly downloads. As such, gps-util popularity was classified as not popular.
We found that gps-util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.