diff --git a/pelias/.gitignore b/pelias/.gitignore index 460aa0ea..b4589ec4 100644 --- a/pelias/.gitignore +++ b/pelias/.gitignore @@ -1 +1,5 @@ +# SPDX-FileCopyrightText: 2024 routeRANK +# +# SPDX-License-Identifier: MIT + ./data \ No newline at end of file diff --git a/pelias/README.md b/pelias/README.md index eff05423..611be0c1 100644 --- a/pelias/README.md +++ b/pelias/README.md @@ -1,3 +1,9 @@ + + # Italian area This project is configured to download/prepare/build a complete Pelias installation for South-Tyrol. diff --git a/pelias/docker-compose.yml b/pelias/docker-compose.yml index 5399075d..8aa2b503 100644 --- a/pelias/docker-compose.yml +++ b/pelias/docker-compose.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 routeRANK +# +# SPDX-License-Identifier: MIT + version: '3' networks: default: diff --git a/pelias/elasticsearch.yml b/pelias/elasticsearch.yml index ca137940..be1c1f2b 100644 --- a/pelias/elasticsearch.yml +++ b/pelias/elasticsearch.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 routeRANK +# +# SPDX-License-Identifier: MIT + network.host: 0.0.0.0 bootstrap.memory_lock: true indices.breaker.fielddata.limit: 85% diff --git a/pelias/importers/delete_old_poi_and_stops.sh b/pelias/importers/delete_old_poi_and_stops.sh index d1c878b1..d1e54e4a 100755 --- a/pelias/importers/delete_old_poi_and_stops.sh +++ b/pelias/importers/delete_old_poi_and_stops.sh @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 routeRANK +# +# SPDX-License-Identifier: MIT + function delete_old_stops { curl -X POST "localhost:9200/pelias/_delete_by_query?pretty" -H 'Content-Type: application/json' -d' { diff --git a/pelias/importers/download_and_prepare_poi.sh b/pelias/importers/download_and_prepare_poi.sh index fd0292e6..df412dc7 100644 --- a/pelias/importers/download_and_prepare_poi.sh +++ b/pelias/importers/download_and_prepare_poi.sh @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 routeRANK +# +# SPDX-License-Identifier: MIT + curl "https://tourism.api.opendatahub.com/v1/ODHActivityPoi?pagesize=50000" > ./data/csv-importer/touristic-poi-all.json curl "https://tourism.api.opendatahub.com/v1/STA/ODHActivityPoi?language=en&referer=SuedtirolMobilWeb&fields=Id%2CDetail.en.Title%2CContactInfos.en.City&pagesize=20000" > ./data/csv-importer/touristic-poi-filtered-set.json diff --git a/pelias/importers/download_and_prepare_stops.sh b/pelias/importers/download_and_prepare_stops.sh index 6cd0fb18..44564740 100644 --- a/pelias/importers/download_and_prepare_stops.sh +++ b/pelias/importers/download_and_prepare_stops.sh @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 routeRANK +# +# SPDX-License-Identifier: MIT + STOP_JSON_FILE=./data/csv-importer/stops.json STOP_CSV=./data/csv-importer/stops.csv diff --git a/pelias/importers/fetch-poi.js b/pelias/importers/fetch-poi.js index e1aedd21..17eccbcf 100644 --- a/pelias/importers/fetch-poi.js +++ b/pelias/importers/fetch-poi.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 routeRANK +// +// SPDX-License-Identifier: MIT + let fs = require('fs'); // Retrieve all stops and additional information diff --git a/pelias/importers/graphql_otp.js b/pelias/importers/graphql_otp.js index 806ef377..c29ecc5f 100644 --- a/pelias/importers/graphql_otp.js +++ b/pelias/importers/graphql_otp.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 routeRANK +// +// SPDX-License-Identifier: MIT + let getAllPoi = `query GetAllPoi { vehicleParkings { vehicleParkingId diff --git a/pelias/importers/process-touristic-poi.js b/pelias/importers/process-touristic-poi.js index 2191801a..1c458c6d 100644 --- a/pelias/importers/process-touristic-poi.js +++ b/pelias/importers/process-touristic-poi.js @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 routeRANK +// +// SPDX-License-Identifier: MIT + const fs = require('fs'); const DATA_DIR = __dirname + "/../data/csv-importer"; diff --git a/pelias/pelias.json.license b/pelias/pelias.json.license new file mode 100644 index 00000000..3fe3e221 --- /dev/null +++ b/pelias/pelias.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 routeRANK + +SPDX-License-Identifier: MIT