2024-10-07 16:19:13 +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
|
|
|
|
*/
|
|
|
|
import MappingConfigType from "../mapping-config.type";
|
|
|
|
|
|
|
|
const mappingRouenParkingVelos: MappingConfigType = {
|
|
|
|
config_name: "mappingRouenParkingVelos",
|
|
|
|
config_author: "tykayn <contact@cipherbliss.com>",
|
|
|
|
default_properties_of_point: {
|
|
|
|
'amenity': 'bicycle_parking'
|
|
|
|
},
|
|
|
|
source: {
|
|
|
|
geojson_path: "cyclabilité/rouen_parking_velos.json",
|
|
|
|
url: 'https://data.metropole-rouen-normandie.fr/api/explore/v2.1/catalog/datasets/liste-des-stationnements-cyclables-metropole-rouen-normandie/exports/geojson?lang=fr&timezone=Europe%2FBerlin'
|
|
|
|
},
|
|
|
|
filters: {
|
2024-10-08 10:09:21 +02:00
|
|
|
exclude_point_if_tag_not_empty: ['osm_id'],
|
2024-10-08 10:37:58 +02:00
|
|
|
// offset: 1
|
2024-10-07 16:19:13 +02:00
|
|
|
},
|
|
|
|
add_not_mapped_tags_too: false,
|
|
|
|
boolean_keys: [
|
|
|
|
"acces_reglement",
|
|
|
|
],
|
2024-10-07 23:26:43 +02:00
|
|
|
tags_to_ignore_if_value_is: ['Non renseigne'],
|
2024-10-07 16:19:13 +02:00
|
|
|
tags: {
|
|
|
|
// ******* nombres
|
2024-10-07 23:26:43 +02:00
|
|
|
capacite: 'capacity',
|
|
|
|
capacite_cargo: 'capacity:cargo_bike',
|
|
|
|
gestionnaire: {
|
|
|
|
key_converted: 'operator',
|
|
|
|
conditionnal_values: {
|
|
|
|
"Non renseigne": {
|
|
|
|
ignore_this_data: true, // ne pas ajouter de tag si la valeur est égale à
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
proprietaire: {
|
|
|
|
key_converted: 'owner',
|
|
|
|
conditionnal_values: {
|
|
|
|
"Non renseigne": {
|
|
|
|
ignore_this_data: true, // ne pas ajouter de tag si la valeur est égale à
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
date_maj: 'check_date',
|
2024-10-07 16:19:13 +02:00
|
|
|
// ******* textes
|
2024-10-07 23:26:43 +02:00
|
|
|
commentaire: 'note',
|
|
|
|
surveillance: {
|
|
|
|
key_converted: 'surveillance',
|
|
|
|
ignore_if_falsy: true,
|
|
|
|
convert_to_boolean_value: true,
|
|
|
|
},
|
|
|
|
mobilier: {
|
|
|
|
key_converted: 'mobilier',
|
2024-10-08 10:09:21 +02:00
|
|
|
remove_original_key: true, // TODO trouver ce qui empêche la conversion quand remove_original_key est a true
|
2024-10-07 23:26:43 +02:00
|
|
|
conditional_values: {
|
|
|
|
"POTELET": {
|
2024-10-08 10:37:58 +02:00
|
|
|
tags_to_add: [
|
2024-10-07 16:19:13 +02:00
|
|
|
{
|
|
|
|
"bicycle_parking": "bollard"
|
|
|
|
},
|
2024-10-07 23:26:43 +02:00
|
|
|
]
|
2024-10-07 16:19:13 +02:00
|
|
|
},
|
2024-10-07 23:26:43 +02:00
|
|
|
"ARCEAU": {
|
2024-10-08 10:37:58 +02:00
|
|
|
tags_to_add: [
|
2024-10-07 16:19:13 +02:00
|
|
|
{
|
2024-10-07 23:26:43 +02:00
|
|
|
"bicycle_parking": "stands"
|
2024-10-07 16:19:13 +02:00
|
|
|
},
|
2024-10-07 23:26:43 +02:00
|
|
|
]
|
2024-10-07 16:19:13 +02:00
|
|
|
},
|
2024-10-07 23:26:43 +02:00
|
|
|
"RATELIER": {
|
2024-10-08 10:37:58 +02:00
|
|
|
tags_to_add: [
|
2024-10-07 16:19:13 +02:00
|
|
|
{
|
2024-10-07 23:26:43 +02:00
|
|
|
"bicycle_parking": "rack"
|
2024-10-07 16:19:13 +02:00
|
|
|
},
|
2024-10-07 23:26:43 +02:00
|
|
|
]
|
2024-10-07 16:19:13 +02:00
|
|
|
},
|
2024-10-07 23:26:43 +02:00
|
|
|
// "Anneaux": {
|
|
|
|
// "tags_to_add": [
|
|
|
|
// {
|
|
|
|
// "bicycle_parking": "stands"
|
|
|
|
// },
|
|
|
|
// ]
|
|
|
|
// },
|
2024-10-07 16:19:13 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
// type_aire: 'nb_pl_moto', // Poteaux => bicycle_parking=bollard, Arceaux, Anneaux => bicycle_parking=stands, Marquage, null, Non renseigné, Range-vélos, Sans, Trottoir
|
2024-10-07 23:26:43 +02:00
|
|
|
id_local: 'ref:FR:rouen_veloparking_id',
|
2024-10-07 16:19:13 +02:00
|
|
|
// acces_reglement: 'access',
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default mappingRouenParkingVelos;
|