mirror of
https://forge.chapril.org/tykayn/wololo
synced 2025-10-09 17:02:46 +02:00
réinit
This commit is contained in:
commit
996524bc6d
107 changed files with 1295536 additions and 0 deletions
39
mappings/converters/config_toilettes.ts
Normal file
39
mappings/converters/config_toilettes.ts
Normal file
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* 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 MappingToilettes: MappingConfigType = {
|
||||
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',
|
||||
contact_operateur: 'email', // ici, on souhaite convertir la clé
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
export default MappingToilettes;
|
Loading…
Add table
Add a link
Reference in a new issue