mapping-geojson-osm/mappings/converters/configFINESS.ts

155 lines
5.2 KiB
TypeScript
Raw Normal View History

2024-10-09 15:56:30 +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";
const mappingFINESS: MappingConfigType = {
config_name: "mappingFINESS",
config_author: "tykayn <contact@cipherbliss.com>",
default_properties_of_point: {},
source: {
geojson_path: "finess/finess_idf.json",
url: 'https://www.data.gouv.fr/fr/datasets/r/b9731c6f-c0d7-422e-9e1c-19edd51687ce'
},
filters: {
// exclude_point_if_tag_not_empty: ['id_osm'],
2024-10-09 16:34:52 +02:00
// offset: 1
2024-10-09 15:56:30 +02:00
},
add_not_mapped_tags_too: false,
boolean_keys: [],
tags_to_ignore_if_value_is: [],
tags: {
// ******* nombres
// capacite: 'capacity',
// ******* textes
siret: 'ref:FR:SIRET',
rslongue: {
key_converted: 'name',
convert_to_name: true,
},
nofinesset: 'ref:FR:FINESS:et',
nofinessej: 'ref:FR:FINESS:ej',
2024-10-10 14:22:33 +02:00
codemft: 'ref:FR:code_mft',
datemaj_structure: 'date:structure:update',
datemaj_geo: 'date:geolocalisation:update',
// categetab: 'ref:FR:categtab',
2024-10-09 15:56:30 +02:00
epci_code: 'ref:FR:code_EPCI',
epci_name: 'ref:FR:EPCI',
2024-10-10 14:22:33 +02:00
categagretab: 'ref:FR:FINESS:category_agreg',
2024-10-09 15:56:30 +02:00
codeape: 'ref:FR:NAF', // https://wiki.openstreetmap.org/wiki/FR:Key:ref:FR:NAF
// categtab: 'type:FR:FINESS',
2024-10-09 15:56:30 +02:00
dateouv: 'start_date',
dateautor: 'authorisation_date',
telephone: {
key_converted: 'operator:phone',
convert_to_phone: true,
},
telecopie: {
key_converted: 'operator:fax',
convert_to_phone: true,
},
categetab: {
2024-10-10 14:22:33 +02:00
remove_original_key: true,
key_converted: 'type:FR:FINESS',
conditional_values: {
2024-10-10 14:22:33 +02:00
// doc https://wiki.openstreetmap.org/wiki/FR:Key:type:FR:FINESS
// Centre Hospitalier Régional
101: {
tags_to_add: {
"amenity": "hospital",
"emergency": "yes",
"healthcare:speciality": "psychiatry",
}
},
// Centre Hospitalier ex Hôpital local
106: {
tags_to_add: {
"amenity": "hospital",
"emergency": "yes",
"healthcare:speciality": "psychiatry",
}
},
// Soins de Suite et Réadaptation
109: {
tags_to_add: {
"amenity": "hospital",
"healthcare:speciality": "psychiatry",
}
},
// Hôpital des armées
114: {
tags_to_add: {
"amenity": "hospital",
}
},
//Établissement de Soins Obstétriques Chirurgico-Gynécologiques
122: {
tags_to_add: {
"amenity": "hospital",
"healthcare:speciality": "obstetrics"
}
},
// Centre de Santé
124: {
tags_to_add: {
"healthcare": "center",
}
},
// Centre de Santé Dentaire
125: {
tags_to_add: {
"amenity": "dentist",
"healthcare": "dentist",
"healthcare:speciality": "dentist",
}
},
// Centre Médico-Psychologique (C.M.P.)
156: {
tags_to_add: {
"healthcare": "centre",
"healthcare:speciality": "psychiatry"
}
},
// "Laboratoires de Biologie Médicale": {
611: {
2024-10-09 15:56:30 +02:00
tags_to_add: {
"healthcare": "laboratory"
}
},
2024-10-10 14:22:33 +02:00
// Centre d'Accueil Th\u00e9rapeutique \u00e0 temps partiel (C.A.T.T.P.)
425: {
tags_to_add: {
"healthcare": "centre",
"healthcare:speciality": "psychiatry"
}
},
// "Centre Hospitalier (C.H.)": {
2024-10-10 14:22:33 +02:00
412: {
2024-10-09 15:56:30 +02:00
tags_to_add: {
"amenity": "hospital",
"healthcare": "hospital"
2024-10-09 15:56:30 +02:00
}
},
// "Pharmacie d'Officine": {
620: {
2024-10-09 15:56:30 +02:00
tags_to_add: {
"healthcare": "pharmacy"
2024-10-09 15:56:30 +02:00
}
},
// "Maison de santé (L.6223-3)": {
2024-10-10 14:22:33 +02:00
603: {
2024-10-09 15:56:30 +02:00
tags_to_add: {
"healthcare": "centre"
2024-10-09 15:56:30 +02:00
}
},
}
},
}
}
export default mappingFINESS;