
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@here/flexpolyline
Advanced tools
Flexible Polyline encoding: a lossy compressed representation of a list of coordinate pairs or triples
The flexible polyline encoding is a lossy compressed representation of a list of coordinate pairs or coordinate triples.
For a detailed description, please visit GitHub.
To encode a polyline:
import { encode } from '@here/flexpolyline';
// Define an array of coordinates
const coordinates = [
[50.1022829, 8.6982122],
[50.1020076, 8.6956695],
[50.1006313, 8.6914960],
[50.0987800, 8.6875156]
];
// encode the polyline
const flexPolyline = encode({ polyline: coordinates });
// The output should be the flex polyline "BFoz5xJ67i1B1B7PzIhaxL7Y"
console.log(flexPolyline);
To decode a polyline:
import { decode } from '@here/flexpolyline';
// Use "decode" to get back the coordinates from the sample above
const decoded = decode(flexPolyline);
console.log(decoded.polyline);
Copyright (C) 2024 HERE Europe B.V.
See the LICENSE file in the root of this project for license details.
FAQs
Flexible Polyline encoding: a lossy compressed representation of a list of coordinate pairs or triples
The npm package @here/flexpolyline receives a total of 9,281 weekly downloads. As such, @here/flexpolyline popularity was classified as popular.
We found that @here/flexpolyline demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.