furkot-directions
Advanced tools
Comparing version 1.1.1 to 1.1.2
1.1.2 / 2018-12-15 | ||
================== | ||
* replace strategy with run-waterfall-until | ||
* optimize checking for valid polyline before decoding | ||
* pass decode factor property to google polyline | ||
1.1.1 / 2018-12-07 | ||
@@ -3,0 +10,0 @@ ================== |
@@ -1,2 +0,2 @@ | ||
var strategy = require('./strategy'); | ||
var strategy = require('run-waterfall-until'); | ||
var travelMode = require('./model').travelMode; | ||
@@ -3,0 +3,0 @@ var util = require('./service/util'); |
@@ -33,3 +33,3 @@ var pathType = require("../../model").pathType; | ||
var directions = result.directions, route; | ||
result.path = path.points && util.decode(path.points); | ||
result.path = util.decode(path.points); | ||
route = { | ||
@@ -36,0 +36,0 @@ duration: Math.round((path.time || 0) / 1000), |
@@ -112,3 +112,3 @@ var pathType = require("../../model").pathType; | ||
directions: directions, | ||
path: geometry && util.decode(geometry), | ||
path: util.decode(geometry), | ||
waypoints: response.routes[0].way_points | ||
@@ -115,0 +115,0 @@ }); |
@@ -42,3 +42,3 @@ // https://github.com/valhalla/valhalla-docs | ||
var directions = result.directions, route; | ||
result.path = leg.shape && util.decode(leg.shape, 1e6); | ||
result.path = util.decode(leg.shape, { factor: 1e6 }); | ||
route = { | ||
@@ -45,0 +45,0 @@ duration: (leg.summary && leg.summary.time) || 0, |
{ | ||
"name": "furkot-directions", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Directions service for Furkot", | ||
@@ -24,3 +24,3 @@ "author": { | ||
"run-series": "^1.1.4", | ||
"run-waterfall": "^1.1.3", | ||
"run-waterfall-until": "~1", | ||
"vis-why": "^1.2.2" | ||
@@ -27,0 +27,0 @@ }, |
Sorry, the diff of this file is not supported yet
60525
17
1322
+ Addedrun-waterfall-until@~1
+ Addedrun-waterfall-until@1.0.1(transitive)
- Removedrun-waterfall@^1.1.3
- Removedrun-waterfall@1.1.7(transitive)