[gnome-maps] openTripPlanner: Adjust walk speed for transfers
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] openTripPlanner: Adjust walk speed for transfers
- Date: Mon, 3 Jul 2017 21:00:32 +0000 (UTC)
commit 8ceb182b810e40978d7d09879529a5e825f988cd
Author: Marcus Lundblad <ml update uu se>
Date: Mon Jul 3 22:59:11 2017 +0200
openTripPlanner: Adjust walk speed for transfers
Adjust the walk speed parameter (used for walking transfers)
which gives a bit more reasonable results.
src/openTripPlanner.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/openTripPlanner.js b/src/openTripPlanner.js
index 8e5730d..6657d63 100644
--- a/src/openTripPlanner.js
+++ b/src/openTripPlanner.js
@@ -489,6 +489,11 @@ const OpenTripPlanner = new Lang.Class({
params.numItineraries = 5;
params.showIntermediateStops = true;
+ /* set walking speed for transfers to a slightly lower value to
+ * compensate for running OTP with only transit data, giving straight-
+ * line walking paths
+ */
+ params.walkSpeed = 1.0;
let time = this._query.time;
let date = this._query.date;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]