2024-10-03 15:14:18 +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";
|
|
|
|
|
2024-10-03 15:55:12 +02:00
|
|
|
const mappingIssy2Roues: MappingConfigType = {
|
2024-10-03 15:14:18 +02:00
|
|
|
config_name: "mappingIssy2Roues",
|
|
|
|
config_author: "tykayn <contact@cipherbliss.com>",
|
|
|
|
default_properties_of_point: {
|
|
|
|
'amenity': 'bicycle_parking'
|
|
|
|
},
|
|
|
|
source: {
|
|
|
|
geojson_path: "cyclabilité/issy_les_mx_cyclabilité.json",
|
|
|
|
url: 'https://data.issy.com/explore/dataset/parkings-2-roues/table/?disjunctive.commune=&disjunctive.type_aire=&disjunctive.type_vehicule=&disjunctive.etat=&disjunctive.pres_abri=&disjunctive.acces_reglement=&disjunctive.position=&sort=nb_places'
|
|
|
|
},
|
|
|
|
filters: {
|
|
|
|
},
|
|
|
|
add_not_mapped_tags_too: false,
|
|
|
|
boolean_keys: [
|
|
|
|
"acces_reglement",
|
|
|
|
],
|
|
|
|
tags: {
|
|
|
|
// ******* nombres
|
|
|
|
nb_places: 'capacity',
|
|
|
|
nb_pl_velo: 'capacity:bike',
|
|
|
|
nb_pl_moto: 'capacity:motorcycle',
|
|
|
|
annee_crea: 'start_date',
|
2024-10-03 15:55:12 +02:00
|
|
|
// ******* textes
|
|
|
|
type_aire: {
|
|
|
|
"remove_original_key": true,
|
|
|
|
"conditional_values": {
|
|
|
|
"Poteaux": {
|
|
|
|
"tags_to_add": [
|
|
|
|
{
|
|
|
|
"bicycle_parking": "bollard"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"Arceaux": {
|
|
|
|
"tags_to_add": [
|
|
|
|
{
|
|
|
|
"bicycle_parking": "bollard"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"Anneaux": {
|
|
|
|
"tags_to_add": [
|
|
|
|
{
|
|
|
|
"bicycle_parking": "stands"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
2024-10-03 15:14:18 +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-03 15:55:12 +02:00
|
|
|
id_r2roues: 'ref:FR:r2roues_issy_les_mx',
|
2024-10-03 15:14:18 +02:00
|
|
|
// acces_reglement: 'access',
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-03 15:55:12 +02:00
|
|
|
export default mappingIssy2Roues;
|