76 lines
2.4 KiB
TypeScript
76 lines
2.4 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: 'name',
|
||
|
nofinesset: 'ref:FR:FINESS_et',
|
||
|
nofinessej: 'ref:FR:FINESS_ej',
|
||
|
categetab: 'ref:FR:categtab',
|
||
|
epci_code: 'ref:FR:code_EPCI',
|
||
|
epci_name: 'ref:FR:EPCI',
|
||
|
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,
|
||
|
},
|
||
|
libcategagretab: {
|
||
|
remove_original_key: true,
|
||
|
conditional_value: {
|
||
|
"Laboratoires de Biologie M\u00e9dicale": {
|
||
|
tags_to_add: {
|
||
|
"healthcare": "laboratory"
|
||
|
}
|
||
|
},
|
||
|
"Centre Hospitalier (C.H.)": {
|
||
|
tags_to_add: {
|
||
|
"amenity": "hospital"
|
||
|
}
|
||
|
},
|
||
|
"Pharmacie d'Officine": {
|
||
|
tags_to_add: {
|
||
|
"amenity": "pharmacy"
|
||
|
}
|
||
|
},
|
||
|
"Maison de sant\u00e9 (L.6223-3)": {
|
||
|
tags_to_add: {
|
||
|
"amenity": "health_house"
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
},
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default mappingFINESS;
|