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

45 lines
1.5 KiB
TypeScript
Raw Normal View History

2023-10-07 22:51:54 +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";
const MappingIRVEOsmose: MappingConfigType = {
config_name: "IRVE config for Osmose IRVE items",
2023-10-07 23:15:21 +02:00
osmose: true,
2023-10-07 22:51:54 +02:00
config_author: "tykayn <contact@cipherbliss.com>",
default_properties_of_point: {
'amenity': 'charging_station'
},
source: {
geojson_path: "etalab_data/all.json",
url: 'https://osmose.openstreetmap.fr/api/0.3/issues.geojson?full=true&status=open&item=8410&limit=20000'
},
/**
* select only certain points from the source
*/
filters: {
enable_coordinates_filter: false,
enable_properties_filter: true,
},
2023-10-07 23:15:21 +02:00
add_not_mapped_tags_too: true,
2023-10-07 22:51:54 +02:00
tags: {
2023-10-07 23:15:21 +02:00
// // ******* nombres
// // ******* textes
2023-10-07 22:51:54 +02:00
amenity: 'amenity', // conserver le tag de base
capacity: 'capacity', // conserver le tag de base
'owner:ref:FR:SIREN': 'owner:ref:FR:SIREN',
operator: 'operator',
'operator:phone': {
key_converted: 'operator:phone',
convert_to_phone: true, // conversion en format international si possible
},
'phone': {
2023-10-09 12:16:11 +02:00
key_converted: 'operator:phone',
2023-10-07 22:51:54 +02:00
convert_to_phone: true, // conversion en format international si possible
},
},
}
2023-10-07 23:15:21 +02:00
export default MappingIRVEOsmose;