2023-07-30 15:52:01 +02:00
|
|
|
/**
|
|
|
|
* plan de conversion des clés du jeu de données vers les tags OSM
|
|
|
|
* détail dans le tableau
|
|
|
|
* https://wiki.openstreetmap.org/wiki/France/data.gouv.fr/Bornes_de_Recharge_pour_V%C3%A9hicules_%C3%89lectriques
|
|
|
|
*/
|
|
|
|
|
|
|
|
export default {
|
2023-07-30 18:37:07 +02:00
|
|
|
config_name: "IRVE config",
|
|
|
|
config_author: "tykayn <contact@cipherbliss.com>",
|
|
|
|
default_properties_of_point: {
|
|
|
|
'amenity': 'charging_station'
|
|
|
|
},
|
|
|
|
tags: {
|
2023-07-30 15:52:01 +02:00
|
|
|
|
2023-07-30 18:37:07 +02:00
|
|
|
// ******* nombres
|
|
|
|
nbre_pdc: 'capacity',
|
|
|
|
// ******* textes
|
|
|
|
amenity: 'amenity', // conserver le tag de base
|
|
|
|
capacity: 'capacity', // conserver le tag de base
|
|
|
|
nom_amenageur: 'operator',
|
|
|
|
siren_amenageur: 'owner:ref:FR:SIREN',
|
|
|
|
nom_operateur: 'operator',
|
|
|
|
telephone_operateur: 'phone',
|
|
|
|
contact_operateur: 'email', // ici, on souhaite convertir la clé contact_operateur=bidule en email=bidule
|
2023-07-30 15:52:01 +02:00
|
|
|
|
2023-07-30 18:37:07 +02:00
|
|
|
id_station_itinerance: 'ref:EU:EVSE',
|
|
|
|
id_station_local: 'ref',
|
2023-07-30 15:52:01 +02:00
|
|
|
|
2023-07-30 18:37:07 +02:00
|
|
|
gratuit: 'fee',
|
|
|
|
paiement_acte: 'authentication:none',
|
2023-07-30 15:52:01 +02:00
|
|
|
|
2023-07-30 18:37:07 +02:00
|
|
|
reservation: 'reservation',
|
|
|
|
observations: 'note',
|
|
|
|
nom_station: 'name',
|
|
|
|
nom_enseigne: 'network',
|
2023-07-30 15:52:01 +02:00
|
|
|
|
2023-07-30 18:37:07 +02:00
|
|
|
// ******* dates
|
|
|
|
date_mise_en_service: 'start_date',
|
|
|
|
date_maj: 'source:date',
|
2023-07-30 15:52:01 +02:00
|
|
|
|
2023-07-30 18:37:07 +02:00
|
|
|
// TODO gestion des types dont on doit convertir la valeur
|
|
|
|
// ******** champs booléens
|
|
|
|
cable_t2_attache:
|
|
|
|
{
|
|
|
|
key_converted: 'socket:type2_cable',
|
|
|
|
// cable_t2_attache
|
|
|
|
truthy_value: '1'
|
|
|
|
}
|
|
|
|
,
|
|
|
|
prise_type_ef: 'socket:typee',
|
|
|
|
prise_type_2: 'socket:type2',
|
|
|
|
prise_type_combo_ccs: 'socket:type2_combo',
|
|
|
|
prise_type_chademo: 'socket:chademo',
|
2023-07-30 15:52:01 +02:00
|
|
|
|
2023-07-30 18:37:07 +02:00
|
|
|
// ******** champs plus complexes
|
|
|
|
horaires: 'opening_hours', // déjà au bon format
|
2023-07-30 15:52:01 +02:00
|
|
|
|
2023-07-30 18:37:07 +02:00
|
|
|
// accessibilite_pmr: 'wheelchair',
|
|
|
|
// paiement_cb: 'payment:credit_cards',
|
|
|
|
|
|
|
|
accessibilite_pmr: {
|
|
|
|
key_converted: "wheelchair",
|
|
|
|
conditional_values: {
|
|
|
|
"Accessibilité inconnue": {
|
|
|
|
// value_converted: "",
|
|
|
|
ignore_this_data: true, // ne pas ajouter de tag si la valeur est égale à Accessibilité inconnue.
|
|
|
|
// transform_function : (original_value) => original_value.toLowerCase(),
|
|
|
|
},
|
|
|
|
"Accessible mais non réservé PMR": {
|
|
|
|
value_converted: "yes"
|
|
|
|
},
|
|
|
|
"Réservé PMR": {
|
|
|
|
value_converted: "yes"
|
|
|
|
},
|
|
|
|
"Non accessible": {
|
|
|
|
value_converted: "no"
|
|
|
|
},
|
|
|
|
"Mo-Fr 08:30-12:00,Mo-Fr 14:00-19:00,Sat 09:00-18:30": {
|
|
|
|
value_converted: "Mo-Fr 08:30-12:00,Mo-Fr 14:00-19:00,Sat 09:00-18:30"
|
|
|
|
},
|
|
|
|
"24/7": {
|
|
|
|
value_converted: ""
|
|
|
|
}
|
2023-07-30 15:52:01 +02:00
|
|
|
|
|
|
|
// 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
|
|
|
|
|
2023-07-30 18:37:07 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
station_deux_roues: {
|
|
|
|
key_converted: null,
|
|
|
|
conditional_values: {
|
|
|
|
// ajout de trois tags si la valeur est yes
|
2023-07-31 19:09:48 +02:00
|
|
|
"yes": {
|
2023-07-30 18:37:07 +02:00
|
|
|
tags_to_add: [
|
|
|
|
{bicycle: "yes"},
|
|
|
|
{scooter: "yes"},
|
|
|
|
{motorcar: "no"},
|
|
|
|
]
|
|
|
|
}
|
2023-07-30 15:52:01 +02:00
|
|
|
}
|
|
|
|
}
|
2023-07-30 18:37:07 +02:00
|
|
|
},
|
2023-07-30 15:52:01 +02:00
|
|
|
}
|