
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@mapquest/directions
Advanced tools
JS interface to MapQuest Directions API. Returns GeoJSON with traffic segments.
This is a JavaScript interface to the MapQuest Directions API.
The route()
method returns a Promise fulfilled with a GeoJSON FeatureCollection of available routes divided
in traffic segments and maneuver points. It's up to you to style the results for map display with a custom style function based
on the GeoJSON feature properties.
The getShape()
method returns a detailed route shape suitable for all zoom levels.
Example
const Directions = require('@mapquest/directions');
const directions = new Directions({key:'your-key'});
directions.route({
locations: [
'chicago, il',
'lansing, mi'
],
maxRoutes: 3,
timeOverage: 99
})
.then(function(results){
console.log('results is a GeoJSON of the available routes and maneuver points', results);
const firstRouteId = results.properties.routeSessionIds[0]; //access routeSessionIds here
return directions.getShape(firstRouteId) //get the detailed route shape
})
.then(draw)
FAQs
JS interface to MapQuest Directions API. Returns GeoJSON with traffic segments.
The npm package @mapquest/directions receives a total of 2 weekly downloads. As such, @mapquest/directions popularity was classified as not popular.
We found that @mapquest/directions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.