From 653ab2e69f2b145e4a5949c85cdd9bab894e0c56 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Sat, 29 Jul 2023 19:03:52 +0200 Subject: [PATCH] add mapping simple fields --- .../convert_to_osm_tags.mjs | 31 +++++++++++++++++-- ...es-irve-filetered-from-etalab-opendata.osm | 1 + 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 mapping_geojson_to_osm_tags/osm_output/bornes-irve-filetered-from-etalab-opendata.osm diff --git a/mapping_geojson_to_osm_tags/convert_to_osm_tags.mjs b/mapping_geojson_to_osm_tags/convert_to_osm_tags.mjs index b2050582..5168cfab 100644 --- a/mapping_geojson_to_osm_tags/convert_to_osm_tags.mjs +++ b/mapping_geojson_to_osm_tags/convert_to_osm_tags.mjs @@ -24,16 +24,43 @@ let pointCounterMax = 10; let sourceFileIRVEGeoJson = './etalab_data/latest.json' /** * 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 */ let mappingConfigIRVE = { - contact_operateur: "email", // ici, on souhaite convertir la clé contact_operateur=bidule en email=bidule amenity: "amenity", // conserver le tag de base capacity: "capacity", // conserver le tag de base nom_amenageur: "operator", + siren_amenageur: "owner:ref:FR:SIREN", + nom_operateur: "operator", telephone_operateur: "phone", - nbre_pdc: "chargin_point:count", + contact_operateur: "email", // ici, on souhaite convertir la clé contact_operateur=bidule en email=bidule + nbre_pdc: "capacity", id_station_itinerance: "ref:EU:EVSE", id_station_local: "ref", + prise_type_ef: "socket:typee", + prise_type_2: "socket:type2", + prise_type_combo_ccs: "socket:type2_combo", + prise_type_chademo: "socket:chademo", + gratuit: "fee", + paiement_acte: "authentication:none", + paiement_cb: "payment:credit_cards", + reservation: "reservation", + accessibilite_pmr: "wheelchair", + date_mise_en_service: "start_date", + observations: "note", + date_maj: "source:date", + nom_station: "name", + nom_enseigne: "network", + cable_t2_attache: "socket:type2_cable", + + // TODO gestion des types dont on doit convertir la valeur + // station_deux_roues => + // ajout de trois tags: + // bicycle=yes + // scooter=yes + // motorcar=no + // consolidated_code_postal: "zipcode", } diff --git a/mapping_geojson_to_osm_tags/osm_output/bornes-irve-filetered-from-etalab-opendata.osm b/mapping_geojson_to_osm_tags/osm_output/bornes-irve-filetered-from-etalab-opendata.osm new file mode 100644 index 00000000..8f3b698f --- /dev/null +++ b/mapping_geojson_to_osm_tags/osm_output/bornes-irve-filetered-from-etalab-opendata.osm @@ -0,0 +1 @@ + \ No newline at end of file