45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
|
/**
|
||
|
* 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",
|
||
|
osmose: true,
|
||
|
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,
|
||
|
},
|
||
|
add_not_mapped_tags_too: true,
|
||
|
tags: {
|
||
|
// // ******* nombres
|
||
|
// // ******* textes
|
||
|
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': {
|
||
|
key_converted: 'operator:phone',
|
||
|
convert_to_phone: true, // conversion en format international si possible
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
export default MappingIRVEOsmose;
|