New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

furkot-directions

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

furkot-directions - npm Package Compare versions

Comparing version 1.2.4 to 1.3.0

.DS_Store

5

History.md
1.3.0 / 2019-09-25
==================
* support curvy roads from GraphHopper
1.2.4 / 2019-07-25

@@ -3,0 +8,0 @@ ==================

10

lib/service/graphhopper/index.js

@@ -15,2 +15,6 @@ const { pathType } = require("../../model");

const weighting = {
true: 'curvature'
};
function prepareWaypoint(qs, p) {

@@ -78,3 +82,3 @@ // waypoint format is lat,lon

function prepareUrl(url, { avoidHighways, avoidTolls, mode, path, points, turnbyturn }) {
function prepareUrl(url, { avoidHighways, avoidTolls, mode, path, points, turnbyturn, curvy }) {
let req = {

@@ -84,2 +88,6 @@ vehicle: vehicle[mode] || vehicle[0],

};
if (curvy && mode === -1) {
req.vehicle = 'motorcycle.kurviger.de';
req.weighting = weighting[curvy];
}
if (!turnbyturn && path !== pathType.smooth && path !== pathType.coarse) {

@@ -86,0 +94,0 @@ req.instructions = false;

2

package.json
{
"name": "furkot-directions",
"version": "1.2.4",
"version": "1.3.0",
"description": "Directions service for Furkot",

@@ -5,0 +5,0 @@ "author": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc