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
59
mappings/converters/configRouen_PAV.ts
Normal file
59
mappings/converters/configRouen_PAV.ts
Normal file
|
@ -0,0 +1,59 @@
|
|||
/**
|
||||
* points d'apport volontaire de Rouen
|
||||
*/
|
||||
import MappingConfigType from "../mapping-config.type";
|
||||
|
||||
const MappingRouenPAV: MappingConfigType = {
|
||||
config_name: "mappingRouen points d'apport volontaire",
|
||||
config_author: "tykayn <contact@cipherbliss.com>",
|
||||
default_properties_of_point: {
|
||||
'amenity': 'recycling',
|
||||
'recycling_type': 'container',
|
||||
},
|
||||
source: {
|
||||
geojson_path: 'https://data.metropole-rouen-normandie.fr/api/explore/v2.1/catalog/datasets/donmetdec_pav/exports/geojson?lang=fr&timezone=Europe%2FBerlin',
|
||||
url: 'https://data.metropole-rouen-normandie.fr/explore/dataset/donmetdec_pav/information/'
|
||||
},
|
||||
filters: {
|
||||
// exclude_point_if_tag_not_empty: ['id_osm'], // on peut exclure des données converties celles qui sont déjà avec un identifiant openstreetmap afin de favoriser l'intégration san avoir à gérer les doublons
|
||||
// offset: 50
|
||||
},
|
||||
add_not_mapped_tags_too: false,
|
||||
boolean_keys: [
|
||||
// "acces_reglement",
|
||||
],
|
||||
tags_to_ignore_if_value_is: ['Non renseigne'],
|
||||
tags: {
|
||||
// ******* nombres
|
||||
pavtyp: {
|
||||
remove_original_key:true,
|
||||
conditional_values: {
|
||||
"Emballages en verre": {
|
||||
tags_to_add: {
|
||||
'recycling:glass': 'yes'
|
||||
}
|
||||
},
|
||||
"Emballages recyclables": {
|
||||
tags_to_add: {
|
||||
'recycling:pmd': 'yes' // https://wiki.openstreetmap.org/wiki/Key:recycling:pmd
|
||||
}
|
||||
},
|
||||
"Ordures ménagères": {
|
||||
tags_to_add: {
|
||||
'amenity': 'waste_disposal'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
date_maj: 'check_date',
|
||||
// ******* textes
|
||||
gml_id: 'ref:FR:Rouen:pav:gml_id',
|
||||
objectid_1: 'ref:FR:Rouen:pav:object',
|
||||
pavid: 'ref:FR:Rouen:pav:id',
|
||||
pavnom: 'ref:FR:Rouen:pav:name',
|
||||
commune: 'ref:FR:Rouen:commune',
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export default MappingRouenPAV;
|
Loading…
Add table
Add a link
Reference in a new issue