85 lines
2.6 KiB
TypeScript
85 lines
2.6 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',
|
|
// 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,
|
|
},
|
|
categetab: {
|
|
// remove_original_key: true,
|
|
key_converted: 'ref:FR:FINESS:category',
|
|
conditional_values: {
|
|
// "Laboratoires de Biologie Médicale": {
|
|
611: {
|
|
tags_to_add: {
|
|
"healthcare": "laboratory"
|
|
}
|
|
},
|
|
// "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;
|