mapping-geojson-osm/mappings/converters/configRouen_PAV.ts

60 lines
2.0 KiB
TypeScript
Raw Normal View History

2024-10-17 09:29:44 +02:00
/**
* points d'apport volontaire de Rouen
*/
import MappingConfigType from "../mapping-config.type";
const MappingRouenPAV: MappingConfigType = {
config_name: "mappingRouenParkingVelos",
config_author: "tykayn <contact@cipherbliss.com>",
default_properties_of_point: {
2024-10-17 09:47:09 +02:00
'amenity': 'recycling',
'recycling_type': 'container',
2024-10-17 09:29:44 +02:00
},
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
2024-10-17 09:47:09 +02:00
// offset: 50
2024-10-17 09:29:44 +02:00
},
add_not_mapped_tags_too: false,
boolean_keys: [
// "acces_reglement",
],
tags_to_ignore_if_value_is: ['Non renseigne'],
tags: {
// ******* nombres
2024-10-17 09:47:09 +02:00
pavtyp: {
2024-10-17 09:29:44 +02:00
remove_original_key:true,
2024-10-17 09:47:09 +02:00
conditional_values: {
2024-10-17 09:29:44 +02:00
"Emballages en verre": {
2024-10-17 09:47:09 +02:00
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'
2024-10-17 09:29:44 +02:00
}
}
}
},
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',
2024-10-17 09:47:09 +02:00
commune: 'ref:FR:Rouen:commune',
2024-10-17 09:29:44 +02:00
}
}
export default MappingRouenPAV;