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

82 lines
2.9 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,
// add only geojson points who are found having this regex in the zipcode properties
// properties: {
// consolidated_code_postal: '^[76|27]'
// },
// bounding_box: [
// {}
// ]
},
2023-10-07 23:15:21 +02:00
// add_not_mapped_tags_too: false,
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
// 'operator:email': 'operator:email', // ici, on souhaite convertir la clé contact_operateur=bidule en email=bidule
// 'ref:EU:EVSE': 'ref:EU:EVSE',
2023-10-09 12:16:11 +02:00
// ref: 'ref',
// fee: 'fee',
// 'authentication': 'authentication',
// 'authentication:none': 'authentication:none',
// reservation: 'reservation' ,
// note: 'note',
// fixme: 'fixme',
2023-10-07 23:15:21 +02:00
// name: 'name',
// network: 'network',
// // ******* dates
// start_date: 'start_date',
// // ******** champs booléens
// 'socket:type2_cable':'socket:type2_cable' ,
// 'socket:typee': 'socket:typee',
// 'socket:type2': 'socket:type2',
// 'socket:type2_combo': 'socket:type2_combo',
// 'socket:chademo': 'socket:chademo',
//
// // ******** champs plus complexes
// opening_hours: 'opening_hours', // déjà au bon format
// 'payment:credit_cards': 'payment:credit_cards',
// wheelchair: "wheelchair",
// bicycle: "bicycle",
// scooter: "scooter",
// motorcar: "motorcar",
// 'socket:max:output': 'socket:max:output'
//
2023-10-07 22:51:54 +02:00
},
}
2023-10-07 23:15:21 +02:00
export default MappingIRVEOsmose;