/** * 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 MappingIRVE: MappingConfigType = { config_name: "toilettes config for paris sanisettes", config_author: "tykayn ", default_properties_of_point: { 'amenity': 'toilets' }, source: { geojson_path: "etalab_data/toilettes_paris_datagouv.json", url: 'https://opendata.paris.fr/api/explore/v2.1/catalog/datasets/sanisettesparis/exports/geojson?lang=fr&timezone=Europe%2FBerlin' }, /** * select only certain points from the source */ filters: { enable_coordinates_filter: false, enable_properties_filter: false, // add only geojson points who are found having this regex in the zipcode properties properties: { // consolidated_code_postal: '^[75]' } }, add_not_mapped_tags_too: false, tags: { nom_operateur: 'operator', telephone_operateur: 'phone', contact_operateur: 'email', // ici, on souhaite convertir la clé contact_operateur=bidule en email=bidule // prise_type_chademo: { // key_converted: 'socket:chademo', // ignore_if_falsy: true, // convert_to_boolean_value: true, // }, // 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: "" // } station_deux_roues: { remove_original_key: true, conditional_values: { // ajout de trois tags si la valeur est yes "yes": { tags_to_add: [ {bicycle: "yes"}, {scooter: "yes"}, {motorcar: "no"}, ] } } } // TODO gestion des puissances de bornes // avec une fonction de transformation des valeurs // parmi le domaine du jeu de données // nécessite une clé conditionnelle à la valeur true d'autres clés converties. // c'est compliquay. }, } // "nom_amenageur": "ELECTRA", // "siren_amenageur": "891624884", // "consolidated_commune": "S\u00e9r\u00e9zin-du-Rh\u00f4ne", // "consolidated_is_lon_lat_correct": true, // "cable_t2_attache": "True" // "goal": "jeu de données pour tester la mapping engine", // "prise_type_2": "yes", // "station_deux_roues": "yes", // "accessibilite_pmr": "Non accessible", // "amenity": "charging_station", // "capacity": 12, // "reservation": "False", // "nom_amenageur": "Bob Lenon", // "siren_amenageur": "12345678", // "socket:typee": "False", // "prise_type_combo_ccs": "no", // "fee": "no", // "authentication:none": "yes" export default MappingIRVE;