diff --git a/backend/src/lira_importing/readme.md b/backend/src/lira_importing/readme.md index e972bcdb..a41e27bc 100644 --- a/backend/src/lira_importing/readme.md +++ b/backend/src/lira_importing/readme.md @@ -2,6 +2,8 @@ **These functions are only meant to be used ones to import the lira database, reformat it and uploaded to our own database. For these scripts to work you need a copy off the db.js and liradb.js for the scripts to work. These files will not be uploaded to github. An example for both can be found in db.example.js and liradb.example.js. Both example files have fake users and passwords.** +##The way the importing function works + When we import data from lira we start by getting the row count and all uuids for entries where distance01 and distance02 is not zero, in the coverage table in the lira database. For each valid entry the following steps are done: 1. Gets distance 01, distance02, fk_trip_id and fk_way_id for one entry in the coverage tabel.