155 lines
5.2 KiB
TypeScript
155 lines
5.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 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'],
|
|
// offset: 1
|
|
},
|
|
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',
|
|
codemft: 'ref:FR:code_mft',
|
|
datemaj_structure: 'date:structure:update',
|
|
datemaj_geo: 'date:geolocalisation:update',
|
|
// categetab: 'ref:FR:categtab',
|
|
epci_code: 'ref:FR:code_EPCI',
|
|
epci_name: 'ref:FR:EPCI',
|
|
categagretab: 'ref:FR:FINESS:category_agreg',
|
|
codeape: 'ref:FR:NAF', // https://wiki.openstreetmap.org/wiki/FR:Key:ref:FR:NAF
|
|
// categtab: 'type:FR:FINESS',
|
|
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: {
|
|
remove_original_key: true,
|
|
key_converted: 'type:FR:FINESS',
|
|
conditional_values: {
|
|
// 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: {
|
|
tags_to_add: {
|
|
"healthcare": "laboratory"
|
|
}
|
|
},
|
|
// 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.)": {
|
|
412: {
|
|
tags_to_add: {
|
|
"amenity": "hospital",
|
|
"healthcare": "hospital"
|
|
}
|
|
},
|
|
// "Pharmacie d'Officine": {
|
|
620: {
|
|
tags_to_add: {
|
|
"healthcare": "pharmacy"
|
|
}
|
|
},
|
|
// "Maison de santé (L.6223-3)": {
|
|
603: {
|
|
tags_to_add: {
|
|
"healthcare": "centre"
|
|
}
|
|
},
|
|
}
|
|
},
|
|
|
|
}
|
|
}
|
|
|
|
export default mappingFINESS;
|