From 6609f2597703e2b90d6fc6b0b6cb502570b0906d Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Fri, 01 Feb 2019 00:42:42 +0000
Subject: [PATCH] Write out vehicle id, not trip id

---
 parse.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/parse.php b/parse.php
index db165c7..db486e2 100644
--- a/parse.php
+++ b/parse.php
@@ -121,7 +121,7 @@
 					// Ignore due to incorrect depot markings in the data
 					//fwrite(STDERR, 'Got '.$num.', database has '.$data['num']."\n");
 				}
-				$result[$jsonTripId] = $data;
+				$result[$this->jsonTrips[$jsonTripId]['id']] = $data;
 			}
 		}
 		return $result;

--
Gitblit v1.9.1