add mapping PAV Rouen
This commit is contained in:
parent
671e994609
commit
4248f59d0c
@ -23,10 +23,11 @@ const allowed_configs = [
|
||||
'mappingIssy2Roues', 'mappingConfigIRVE', 'mappingConfigIRVEFromOsmose',
|
||||
'mappingConfigIRVE_simple', 'mappingTest', 'ConfigIRVE',
|
||||
'mappingRouenParkingVelos', 'mappingFINESS', 'MappingArbresIssy',
|
||||
'MappingArbres92', 'MappingMuseums'
|
||||
'MappingArbres92', 'MappingMuseums','MappingRouenPAV'
|
||||
];
|
||||
|
||||
import minimist = require('minimist')
|
||||
import MappingRouenPAV from "./mappings/converters/configRouen_PAV";
|
||||
|
||||
const debugLog = utils.debugLog;
|
||||
|
||||
@ -394,6 +395,8 @@ function setMappingConfigFromName(engine_conf_choice: string) {
|
||||
Mapping_engine.setConfig(MappingArbres92)
|
||||
} else if (engine_conf_choice == 'MappingMuseums') {
|
||||
Mapping_engine.setConfig(MappingMuseums)
|
||||
}else if (engine_conf_choice == 'MappingRouenPAV') {
|
||||
Mapping_engine.setConfig(MappingRouenPAV)
|
||||
}
|
||||
} else {
|
||||
Mapping_engine.setConfig(mappingConfigIRVE)
|
||||
|
8
docs/recyclage.md
Normal file
8
docs/recyclage.md
Normal file
@ -0,0 +1,8 @@
|
||||
# Recyclage - PAV - points d'apport volontaire
|
||||
Les boites de tri de déchets public ont leur configuration de conversion.
|
||||
|
||||
# Conversion
|
||||
## Conversion pour les données de Rouen
|
||||
```bash
|
||||
ts-node convert_to_osm_tags.ts --source=etalab_data/recycling/rouen_pav.json --output-file=rouen_pav.geojson --engine-config=MappingRouenPAV
|
||||
```
|
File diff suppressed because one or more lines are too long
@ -15,10 +15,6 @@ const MappingMuseums: MappingConfigType = {
|
||||
key_converted: "contact:phone",
|
||||
convert_to_phone: true,
|
||||
},
|
||||
"Nom officiel du musée": {
|
||||
key_converted: "name",
|
||||
convert_to_name: true,
|
||||
}
|
||||
},
|
||||
add_not_mapped_tags_too: false,
|
||||
source: {
|
||||
|
50
mappings/converters/configRouen_PAV.ts
Normal file
50
mappings/converters/configRouen_PAV.ts
Normal file
@ -0,0 +1,50 @@
|
||||
/**
|
||||
* 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: {
|
||||
'amenity': 'recycling'
|
||||
},
|
||||
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: 100
|
||||
},
|
||||
add_not_mapped_tags_too: false,
|
||||
boolean_keys: [
|
||||
// "acces_reglement",
|
||||
],
|
||||
tags_to_ignore_if_value_is: ['Non renseigne'],
|
||||
tags: {
|
||||
// ******* nombres
|
||||
capacite: 'capacity',
|
||||
|
||||
pavtyp: {
|
||||
remove_original_key:true,
|
||||
conditionnal_values: {
|
||||
"Emballages en verre": {
|
||||
tags_to_add:{
|
||||
'recycling:glass_bottles': 'yes'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
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',
|
||||
// acces_reglement: 'access',
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export default MappingRouenPAV;
|
Loading…
Reference in New Issue
Block a user