Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
turf-along
Advanced tools
Readme
turf.along(line, distance, [units=miles])
Takes a LineString|line and returns a Point|point at a specified distance along the line.
parameter | type | description |
---|---|---|
line | Feature.<LineString> | input line |
distance | Number | distance along the line |
[units=miles] | String | optional: can be degrees, radians, miles, or kilometers |
var line = {
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[-77.031669, 38.878605],
[-77.029609, 38.881946],
[-77.020339, 38.884084],
[-77.025661, 38.885821],
[-77.021884, 38.889563],
[-77.019824, 38.892368]
]
}
};
var along = turf.along(line, 1, 'miles');
var result = {
"type": "FeatureCollection",
"features": [line, along]
};
//=result
Returns Feature.<Point>
, Point distance
units
along the line
Requires nodejs.
$ npm install turf-along
$ npm test
FAQs
# along
The npm package turf-along receives a total of 10,103 weekly downloads. As such, turf-along popularity was classified as popular.
We found that turf-along demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.