65 lines
2.2 KiB
TypeScript
65 lines
2.2 KiB
TypeScript
/**
|
|
* 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 mappingIssy2Roues: MappingConfigType = {
|
|
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',
|
|
// ******* 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"
|
|
},
|
|
]
|
|
},
|
|
}
|
|
},
|
|
// type_aire: 'nb_pl_moto', // Poteaux => bicycle_parking=bollard, Arceaux, Anneaux => bicycle_parking=stands, Marquage, null, Non renseigné, Range-vélos, Sans, Trottoir
|
|
id_r2roues: 'ref:FR:r2roues_issy_les_mx',
|
|
// acces_reglement: 'access',
|
|
|
|
}
|
|
}
|
|
|
|
export default mappingIssy2Roues;
|