2023-08-10 14:34:37 +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";
|
|
|
|
|
2024-07-08 11:27:27 +02:00
|
|
|
const MappingToilettes: MappingConfigType = {
|
2023-08-10 14:34:37 +02:00
|
|
|
config_name: "toilettes config for paris sanisettes",
|
|
|
|
config_author: "tykayn <contact@cipherbliss.com>",
|
|
|
|
default_properties_of_point: {
|
|
|
|
'amenity': 'toilets'
|
|
|
|
},
|
|
|
|
source: {
|
|
|
|
geojson_path: "etalab_data/toilettes_paris_datagouv.json",
|
|
|
|
url: 'https://opendata.paris.fr/api/explore/v2.1/catalog/datasets/sanisettesparis/exports/geojson?lang=fr&timezone=Europe%2FBerlin'
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* select only certain points from the source
|
|
|
|
*/
|
|
|
|
filters: {
|
|
|
|
enable_coordinates_filter: false,
|
|
|
|
enable_properties_filter: false,
|
|
|
|
// add only geojson points who are found having this regex in the zipcode properties
|
|
|
|
properties: {
|
|
|
|
// consolidated_code_postal: '^[75]'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
add_not_mapped_tags_too: false,
|
|
|
|
tags: {
|
|
|
|
|
|
|
|
nom_operateur: 'operator',
|
|
|
|
telephone_operateur: 'phone',
|
2024-07-08 11:27:27 +02:00
|
|
|
contact_operateur: 'email', // ici, on souhaite convertir la clé
|
2023-08-10 14:34:37 +02:00
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2024-07-08 11:27:27 +02:00
|
|
|
export default MappingToilettes;
|