mirror of
https://forge.chapril.org/tykayn/wololo
synced 2025-10-09 17:02:46 +02:00
réinit
This commit is contained in:
commit
996524bc6d
107 changed files with 1295536 additions and 0 deletions
88
mappings/converters/configRouen_OpenData_velo_parkings.ts
Normal file
88
mappings/converters/configRouen_OpenData_velo_parkings.ts
Normal file
|
@ -0,0 +1,88 @@
|
|||
/**
|
||||
* 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: {
|
||||
exclude_point_if_tag_not_empty: ['id_osm'], // on peut exclure des données converties celles qui sont déjà avec un identifiant openstreetmap afin de favoriser l'intégration san avoir à gérer les doublons
|
||||
// offset: 100
|
||||
},
|
||||
add_not_mapped_tags_too: false,
|
||||
boolean_keys: [
|
||||
"acces_reglement",
|
||||
],
|
||||
tags_to_ignore_if_value_is: ['Non renseigne'],
|
||||
tags: {
|
||||
// ******* nombres
|
||||
capacite: 'capacity',
|
||||
capacite_cargo: 'capacity:cargo_bike',
|
||||
gestionnaire: {
|
||||
key_converted: 'operator',
|
||||
conditional_values: {
|
||||
"Non renseigne": {
|
||||
ignore_this_data: true, // ne pas ajouter de tag si la valeur est égale à
|
||||
}
|
||||
}
|
||||
},
|
||||
proprietaire: {
|
||||
key_converted: 'owner',
|
||||
conditional_values: {
|
||||
"Non renseigne": {
|
||||
ignore_this_data: true, // ne pas ajouter de tag si la valeur est égale à
|
||||
}
|
||||
}
|
||||
},
|
||||
date_maj: 'check_date',
|
||||
// ******* textes
|
||||
commentaire: 'note',
|
||||
surveillance: {
|
||||
key_converted: 'surveillance',
|
||||
ignore_if_falsy: true,
|
||||
convert_to_boolean_value: true,
|
||||
},
|
||||
mobilier: {
|
||||
key_converted: 'mobilier',
|
||||
remove_original_key: true, // TODO trouver ce qui empêche la conversion quand remove_original_key est a true
|
||||
conditional_values: {
|
||||
"POTELET": {
|
||||
tags_to_add: [
|
||||
{
|
||||
"bicycle_parking": "bollard"
|
||||
},
|
||||
]
|
||||
},
|
||||
"ARCEAU": {
|
||||
tags_to_add: [
|
||||
{
|
||||
"bicycle_parking": "stands"
|
||||
},
|
||||
]
|
||||
},
|
||||
"RATELIER": {
|
||||
tags_to_add: [
|
||||
{
|
||||
"bicycle_parking": "rack"
|
||||
},
|
||||
]
|
||||
},
|
||||
}
|
||||
},
|
||||
id_local: 'ref:FR:rouen_veloparking_id',
|
||||
// acces_reglement: 'access',
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export default mappingRouenParkingVelos;
|
Loading…
Add table
Add a link
Reference in a new issue