Added LICENSE
- Code uses AGPL - Docs use GNU FDL
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
This file is part of transport-accessibility.
|
||||
Copyright (C) 2024 Janek Kiljanski, Johannes Randerath
|
||||
|
||||
transport-accessibility is free software: you can redistribute it and/or modify it under the terms of the
|
||||
GNU General Public License as published by the Free Software Foundation, either version 3
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
transport-accessibility is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with transport-accessibility.
|
||||
If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,19 @@
|
||||
// This script is not imported in the main script at all
|
||||
/*
|
||||
This file is part of transport-accessibility.
|
||||
Copyright (C) 2024 Janek Kiljanski, Johannes Randerath
|
||||
|
||||
transport-accessibility is free software: you can redistribute it and/or modify it under the terms of the
|
||||
GNU General Public License as published by the Free Software Foundation, either version 3
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
transport-accessibility is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with transport-accessibility.
|
||||
If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@@ -107,4 +122,4 @@ function findDistanceToPolyline(point, polyline) {
|
||||
});
|
||||
|
||||
return minDistance;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
/*
|
||||
This file is part of transport-accessibility.
|
||||
Copyright (C) 2024 Janek Kiljanski, Johannes Randerath
|
||||
|
||||
transport-accessibility is free software: you can redistribute it and/or modify it under the terms of the
|
||||
GNU General Public License as published by the Free Software Foundation, either version 3
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
transport-accessibility is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with transport-accessibility.
|
||||
If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function parseCSV(data) {
|
||||
const lines = data.split(/\r\n|\n|\r/); // parse by \n and/or by \n
|
||||
const headers = lines[0].split(',');
|
||||
@@ -56,4 +72,4 @@ function parseShapesFile(file) {
|
||||
}
|
||||
};
|
||||
reader.readAsText(file);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
/*
|
||||
This file is part of transport-accessibility.
|
||||
Copyright (C) 2024 Janek Kiljanski, Johannes Randerath
|
||||
|
||||
transport-accessibility is free software: you can redistribute it and/or modify it under the terms of the
|
||||
GNU General Public License as published by the Free Software Foundation, either version 3
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
transport-accessibility is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with transport-accessibility.
|
||||
If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function addClickableShape (latlngs, shape_id) {
|
||||
// Create polyline and add to map
|
||||
const polyline = L.polyline(latlngs, { color: 'blue', weight: 5 }).addTo(map);
|
||||
@@ -125,4 +141,4 @@ function makeShapesBlue() {
|
||||
}
|
||||
}
|
||||
currentShapeIDs = {routes: [], stops: []};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
/*
|
||||
This file is part of transport-accessibility.
|
||||
Copyright (C) 2024 Janek Kiljanski, Johannes Randerath
|
||||
|
||||
transport-accessibility is free software: you can redistribute it and/or modify it under the terms of the
|
||||
GNU General Public License as published by the Free Software Foundation, either version 3
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
transport-accessibility is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with transport-accessibility.
|
||||
If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
function handleFileSelect(event) {
|
||||
const files = event.target.files;
|
||||
const routesFile = Array.from(files).find(file => file.name === 'routes.txt');
|
||||
@@ -484,4 +500,4 @@ function cancelShapeEdit () {
|
||||
chosenShape.appendChild(textContent);
|
||||
|
||||
makeShapesBlue();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user