This commit is contained in:
Tykayn 2023-08-09 19:24:46 +02:00 committed by tykayn
parent 7c97a16ae2
commit e07eb5c853
4 changed files with 1153973 additions and 20 deletions

View File

@ -0,0 +1,8 @@
#!/bin/bash
# get the updated geojson
wget https://www.data.gouv.fr/fr/datasets/r/7eee8f09-5d1b-4f48-a304-5e99e8da1e26 -P ./etalab_data -O ./etalab_data/all.json
wget https://www.data.gouv.fr/fr/datasets/r/8d9398ae-3037-48b2-be19-412c24561fbb -P ./etalab_data -O ./etalab_data/all.csv
# https://www.data.gouv.fr/fr/datasets/r/8d9398ae-3037-48b2-be19-412c24561fbb pour le jeu de données irve schema v2, non utilisé dans ce script
# filter its tags
echo "refresh de la data"

View File

@ -45,9 +45,15 @@ const MappingIRVE: MappingConfigType = {
// id_station_itinerance: 'ref:EU:EVSE',
id_station_local: 'ref',
gratuit: 'fee',
paiement_acte: 'authentication:none',
gratuit: {
key_converted: 'fee',
convert_to_boolean_value: true,
},
paiement_acte:
{
key_converted: 'authentication:none',
convert_to_boolean_value: true, // convertit en yes ou no
},
reservation: {
convert_to_boolean_value: true, // convertit en yes ou no
},
@ -66,6 +72,7 @@ const MappingIRVE: MappingConfigType = {
key_converted: 'socket:type2_cable',
// socket:type2_cable vaut 1 dans OSM si vrai
truthy_value: '1',
ignore_if_falsy: true,
}
,
prise_type_ef: {
@ -92,7 +99,11 @@ const MappingIRVE: MappingConfigType = {
horaires: 'opening_hours', // déjà au bon format
// accessibilite_pmr: 'wheelchair',
// paiement_cb: 'payment:credit_cards',
paiement_cb: {
key_converted: 'payment:credit_cards',
// ignore_if_falsy: true,
convert_to_boolean_value: true,
},
// accessibilite_pmr: {
// key_converted: "wheelchair",
@ -117,21 +128,6 @@ const MappingIRVE: MappingConfigType = {
// "24/7": {
// value_converted: ""
// }
// choix:
// Sa:09:00-19:00
// 24/7
// Mo-Fr 08:00-12:00,Mo-Fr 14:00-19:00,Sat 09:00-18:00
// Mo-Fr 08:00-19:00,Sat 09:00-18:00
// Sa:08:00-19:00
// 24/7
// Mo-Fr 08:30-12:00,Mo-Fr 14:00-19:00,Sat 09:00-18:30
// Mo-Fr 09:00-16:00
// Mo-Fr 08:00-12:00,Mo-Fr 14:00-18:00,Th 08:00-18:00
// }
// },
station_deux_roues: {
remove_original_key: true,
conditional_values: {
@ -148,6 +144,8 @@ const MappingIRVE: MappingConfigType = {
// TODO gestion des puissances de bornes
// avec une fonction de transformation des valeurs
// parmi le domaine du jeu de données
// nécessite une clé conditionnelle à la valeur true d'autres clés converties.
// c'est compliquay.
},
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff