end variance, fix script to build all departement files

This commit is contained in:
Tykayn 2023-08-07 16:55:52 +02:00 committed by tykayn
parent e34a147604
commit 7c97a16ae2
37 changed files with 538567 additions and 45523 deletions

View File

@ -3,40 +3,56 @@
**/ **/
const {exec} = require('child_process'); const {exec} = require('child_process');
const execSync = require("child_process").execSync;
const max_departement = 95 let min_department = 1;
const max_departement = 1
let enable_domtom = true;
// const max_departement = 95
function exec_command(command: string) { function exec_command(command: string) {
let yourscript = exec(command,
(error: any, stdout: any, stderr: any) => {
console.log(stdout); console.log('=> command',
console.log(stderr); command
if (error !== null) { )
console.log(`exec error: ${error}`); const result = execSync(command);
}
}); // convert and show the output.
console.log(result.toString("utf8"));
} }
async function build_department_geojson(department: string) { function build_department_geojson(department: string) {
let command = `ts-node convert_to_osm_tags.ts --department=${department}`; let command = `ts-node convert_to_osm_tags.ts --department=${department}`;
console.log('command', command) console.log('command', command)
await exec_command(command) exec_command(command)
} }
async function convert_geojson_to_osm_for_department(department: string) { function convert_geojson_to_osm_for_department(department: string) {
let command = `geojsontoosm output/my_converted_data_set_filtered_zipcode_${department}.json > osm_output/bornes-irve-filetered-from-etalab-opendata_dep_${department}.osm`; let command = `geojsontoosm output/my_converted_data_set_filtered_zipcode_${department}.json > osm_output/bornes-irve-filetered-from-etalab-opendata_dep_${department}.osm`;
console.log('command', command) console.log('command', command)
await exec_command(command) exec_command(command)
} }
for (let ii = 1; ii <= max_departement; ii++) { for (let ii = min_department; ii <= max_departement; ii++) {
let departement = '' + ii let departement = '' + ii
build_department_geojson(departement) build_department_geojson(departement)
}
for (let ii = min_department; ii <= max_departement; ii++) {
let departement = '' + ii
convert_geojson_to_osm_for_department(departement) convert_geojson_to_osm_for_department(departement)
} }
// build_department_geojson('2A')
// convert_geojson_to_osm_for_department('2A')
// build_department_geojson('2B')
// convert_geojson_to_osm_for_department('2B')
if (enable_domtom) {
// départements corse et dom tom // départements corse et dom tom
let more_departements = ['2A', '2B' let more_departements = ['2A', '2B'
, '971' , '971'
@ -47,15 +63,18 @@ let more_departements = ['2A', '2B'
, '976'] , '976']
more_departements.forEach((department => { more_departements.forEach((department => {
console.log(' mapping data for department ' + department)
let departement_string = '' + department let departement_string = '' + department
build_department_geojson(departement_string).then(r => { build_department_geojson(departement_string)
console.log('build_department_geojson', departement_string, r)
}) }))
convert_geojson_to_osm_for_department(departement_string).then(r => { more_departements.forEach((department => {
console.log('convert_geojson_to_osm_for_department', departement_string, r) console.log('convert to osm ' + department)
}) let departement_string = '' + department
convert_geojson_to_osm_for_department(departement_string)
})) }))
}
/** /**
Numéro Départements Chef-lieu Numéro Départements Chef-lieu

View File

@ -223,13 +223,14 @@ function convertDataForIRVE(sourceFilePath: string, mapping: any, pointCounterMa
if (converted_geo_json.features.length) { if (converted_geo_json.features.length) {
let fileNameToWrite = 'my_converted_data_set' + filteredName + '.json' let fileNameToWrite = 'my_converted_data_set' + filteredName + '.json'
console.log('features: ', converted_geo_json.features.length)
debugLog('convert : write file ', fileNameToWrite) debugLog('convert : write file ', fileNameToWrite)
writeFile(fileNameToWrite, JSON.stringify(converted_geo_json, null, 2)) writeFile(fileNameToWrite, JSON.stringify(converted_geo_json, null, 2))
} else { } else {
debugLog('convert : no writing of file, because there is no converted feature') console.log('convert : no writing of file, because there is no converted feature')
} }
console.log('convert : converted_geo_json output:', converted_geo_json.features) // console.log('convert : converted_geo_json output:', converted_geo_json.features)
return converted_geo_json return converted_geo_json
} }

View File

@ -1 +0,0 @@
,tykayn,spaceship,07.08.2023 15:16,file:///home/tykayn/.config/libreoffice/4;

View File

@ -1 +0,0 @@
,tykayn,spaceship,07.08.2023 15:20,file:///home/tykayn/.config/libreoffice/4;

View File

@ -19,7 +19,8 @@ let separator = ';';
// let columns_headings = []; // let columns_headings = [];
let data_variance: VarianceType = {}; let data_variance: VarianceType = {};
const inputPath = './etalab_data/small.csv' const inputPath = './etalab_data/all.csv'
// const inputPath = './etalab_data/small.csv'
let columns_headings: Array<string> = []; let columns_headings: Array<string> = [];
let lines_count = 0; let lines_count = 0;
let longest_variance_count = 0; let longest_variance_count = 0;
@ -37,7 +38,6 @@ fs.readFile(inputPath, function (err: any, fileData: any) {
rows.forEach((row: Array<any>) => { rows.forEach((row: Array<any>) => {
console.log('ajout de données de la ligne ', lines_count)
if (lines_count === 0) { if (lines_count === 0) {
// console.log('elem', row) // console.log('elem', row)
@ -46,6 +46,7 @@ fs.readFile(inputPath, function (err: any, fileData: any) {
columns_headings.push(value) columns_headings.push(value)
data_variance[value] = [] data_variance[value] = []
}) })
console.log('columns_headings.length', columns_headings.length)
lines_count++ lines_count++
} else { } else {
// lignes suivantes // lignes suivantes
@ -54,6 +55,7 @@ fs.readFile(inputPath, function (err: any, fileData: any) {
row.forEach((value: string) => { row.forEach((value: string) => {
value = value.trim()
// dans chaque colonne, vérifier que la valeur n'est pas déjà présente dans les index de variance // dans chaque colonne, vérifier que la valeur n'est pas déjà présente dans les index de variance
// si la valeur est nouvelle, l'ajouter // si la valeur est nouvelle, l'ajouter
if (data_variance[columns_headings[column_index]].indexOf(value) < 0) { if (data_variance[columns_headings[column_index]].indexOf(value) < 0) {
@ -88,13 +90,22 @@ fs.readFile(inputPath, function (err: any, fileData: any) {
*/ */
function writeCSVVariance() { function writeCSVVariance() {
let csv_content = 'variance de ' + inputPath + '\n' let csv_content = ';variance de ' + inputPath + ';' + new Date() + '\n'
let columns = Object.keys(data_variance); let columns = Object.keys(data_variance);
// add headings // add headings
columns_headings.forEach((heading: string) => { columns_headings.forEach((heading: string) => {
csv_content = csv_content + separator + heading csv_content = csv_content + separator + heading
}) })
csv_content = csv_content + '\n'
// add max length of variance for each column
let ii = 0
columns.forEach((column: string) => {
// console.log('column', column, data_variance[column].length)
csv_content = csv_content + separator + data_variance[column].length
ii++
})
csv_content = csv_content + '\n\n' csv_content = csv_content + '\n\n'
// add content of values // add content of values
for (let ii = 0; ii < longest_variance_count; ii++) { for (let ii = 0; ii < longest_variance_count; ii++) {
@ -110,6 +121,6 @@ function writeCSVVariance() {
}) })
} }
console.log('csv_content', csv_content) // console.log('csv_content', csv_content)
return csv_content; return csv_content;
} }

View File

@ -251,8 +251,8 @@ export default class {
let keysConditionnalValues: any = Object.keys(configObject.conditional_values) let keysConditionnalValues: any = Object.keys(configObject.conditional_values)
let isFoundValue = keysConditionnalValues.indexOf(originalValue) let isFoundValue = keysConditionnalValues.indexOf(originalValue)
console.log('isFoundValue', isFoundValue, originalValue) debugLog('isFoundValue', isFoundValue, originalValue)
console.log('keysConditionnalValues', keysConditionnalValues) debugLog('keysConditionnalValues', keysConditionnalValues)
if (isFoundValue > -1) { if (isFoundValue > -1) {
@ -260,10 +260,10 @@ export default class {
/** ---------------------- /** ----------------------
* gestion des valeurs conditionnelles * gestion des valeurs conditionnelles
* ---------------------- */ * ---------------------- */
console.log('conditionnalConfig', conditionnalConfig) debugLog('conditionnalConfig', conditionnalConfig)
if (conditionnalConfig.ignore_this_data) { if (conditionnalConfig.ignore_this_data) {
console.log(`on ignore cette clé car sa valeur "${originalValue}" est à exclure: `, pointKeyName, '=>', newKey) debugLog(`on ignore cette clé car sa valeur "${originalValue}" est à exclure: `, pointKeyName, '=>', newKey)
remove_original_key = true; remove_original_key = true;
} }
if (conditionnalConfig.tags_to_add) { if (conditionnalConfig.tags_to_add) {
@ -311,7 +311,7 @@ export default class {
} }
debugLog('convertProperty: convertedValue ==========> {', newKey, ':', convertedValue, '}') debugLog('convertProperty: convertedValue ==========> {', newKey, ':', convertedValue, '}')
console.log(' =============== remove_original_key',newKey, remove_original_key) debugLog(' =============== remove_original_key',newKey, remove_original_key)
if (!remove_original_key && newKey && convertedValue && !configObject.ignore_this_data) { if (!remove_original_key && newKey && convertedValue && !configObject.ignore_this_data) {
debugLog('convertProperty: added') debugLog('convertProperty: added')

View File

@ -1,31 +0,0 @@
let show_debug = 0
/**
* faire un log
* @param message
*/
function debugLog (message) {
if (!show_debug) {
return
}
console.log('debug: ', ...message)
}
/**
* TODO
* find the domain of all columns in a csv,
* take the header and the values, return only the unique values for each column, save a new csv,
and build a config for the mapping engine listing all the possible values.
* @param pointKeyName
* @returns {boolean}
*/
function openCSV (filePath) {
console.log('open csv filePath')
return
}
export default {
debugLog,
isBooleanKey
}

View File

@ -4,7 +4,7 @@ let show_debug = 0
// show_debug = 1 // show_debug = 1
let output_folder = 'output'; let output_folder = 'output';
console.log('----------------------show_debug', show_debug) // console.log('----------------------show_debug', show_debug)
/** /**
* wrapper de log qui se montre uniquemnt si show_debug a é activé * wrapper de log qui se montre uniquemnt si show_debug a é activé

View File

@ -1 +0,0 @@
,tykayn,spaceship,07.08.2023 16:06,file:///home/tykayn/.config/libreoffice/4;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,559 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.5681025,
16.24180386
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "BNCC1SH0T1",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-02-24",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.5413194,
16.25249499
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "BGK8U5EEDE",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.5413194,
16.25249499
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "BGK8U5EEDE",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.2751846,
16.25790761
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "TA9HIA7WJP",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.5892723,
16.25229414
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "E2ZYVDEZCI",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.5892723,
16.25229414
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "E2ZYVDEZCI",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.2751846,
16.25790761
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "TA9HIA7WJP",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.2751846,
16.25790761
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "TA9HIA7WJP",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.5892723,
16.25229414
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "E2ZYVDEZCI",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.5892723,
16.25229414
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "E2ZYVDEZCI",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.5892723,
16.25229414
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "E2ZYVDEZCI",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.5892723,
16.25229414
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "E2ZYVDEZCI",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.2751846,
16.25790761
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "TA9HIA7WJP",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.5892723,
16.25229414
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "E2ZYVDEZCI",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.5892723,
16.25229414
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "E2ZYVDEZCI",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-10-17",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.41,
16.01
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "428801658",
"email": "odile.coumau@ezdrive.fr",
"network": "Bananes Vertes St Claude",
"ref": "FREZDE28287",
"socket:typee": "yes",
"fee": "false",
"authentication:none": "false",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-07-22"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.72048039949465,
15.999101989340252
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "819761883",
"email": "odile.coumau@ezdrive.fr",
"network": "Mc Donald's Basse Terre",
"ref": "FREZDE63396",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "false",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-07-20"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.72,
16
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "434675906",
"email": "odile.coumau@ezdrive.fr",
"phone": "0696901897",
"network": "McDonald's Basse terre",
"ref": "FR*EZD*E63395, FR*EZD*E63396",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-07-06"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.52,
16.26
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "819761883",
"email": "odile.coumau@ezdrive.fr",
"phone": "0696901897",
"network": "BEBE 9 Les Abymes",
"ref": "VRT_NB_1290",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-07-29"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.61,
16.2
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "819761883",
"email": "odile.coumau@ezdrive.fr",
"phone": "0696901897",
"network": "ETS POMMEZ",
"ref": "FR*EZD*E38642, FR*EZD*E38643",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-08-15"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.56,
16.24
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "819761883",
"email": "odile.coumau@ezdrive.fr",
"phone": "0696901897",
"network": "Fitness park Jarry",
"ref": "FR*EZD*E26743, FR*EZD*E8102",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-09-08"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.69,
16.03
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "428801658",
"email": "odile.coumau@ezdrive.fr",
"phone": "0696901897",
"network": "Bananes Vertes St Claude",
"ref": "FR*EZD*E28286, FR*EZD*E28287",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-08-23"
}
}
]
}

View File

@ -0,0 +1,782 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.139421,
14.650675
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "B9F5WIHHBL",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2021-08-03",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.139421,
14.650675
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "B9F5WIHHBL",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2021-08-03",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-60.9737496,
14.55460115
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "LLJ6XHLSS2QBEH",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2023-06-22",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-60.9737496,
14.55460115
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "LLJ6XHLSS2QBEH",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2023-06-22",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.18036,
14.697624
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "484506555",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "Petibonum",
"ref": "FR*EZD*E20883, FR*EZD*E20884",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2021-11-24"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-60.972756,
14.601781
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "431416288",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "DIGICEL ANTILLES FRANCAISES GUYANE",
"ref": "FR*EZD*E95818, FR*EZD*E95819",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2021-12-27"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.00386,
14.607184
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "788896082",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "Colibri",
"ref": "FR*EZD*E20881, FR*EZD*E20882",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-03-29"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.07342,
14.60317
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "334174190",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "Socanparc - Pointe Simon",
"ref": "FR*EZD*E28314, FR*EZD*E28315",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "Mo-Fr 06:00-20:00,Sa 07:00-14:00",
"start_date": "2021-12-27"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.06751,
14.608331
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "334174190",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "Socanparc - Lafcadio",
"ref": "FR*EZD*E28312, FR*EZD*E28313",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "Mo-Fr 06:00-20:00,Sa 07:00-14:00",
"start_date": "2021-12-27"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.04232,
14.472874
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "842762346",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "Le chill",
"ref": "FR*EZD*E20771, FR*EZD*E20772",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-01-10"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.02208,
14.813607
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "842796641",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "Koud'pouss",
"ref": "FR*EZD*E66784, FR*EZD*E66785",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-01-05"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.0255406,
14.62847996
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "328490685",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "Antilles Téléphone",
"ref": "FR*EZD*E38638,FR*EZD*E38639",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-03-19"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.027682,
14.615813
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "331647602",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "BUT ",
"ref": "FR*EZD*E63049,FR*EZD*E63050,FR*EZD*E63057,FR*EZD*E63058",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-03-06"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.04633536,
14.59493306
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "841748551",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "Hôtel B&B",
"ref": "FR*EZD*E63047,FR*EZD*E63048,FR*EZD*E93917,FR*EZD*E93918,FR*EZD*E63053,FR*EZD*E63054",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-04-19"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.00997,
14.604876
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "500634688",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "SEEN ",
"ref": "FR*EZD*E45697,FR*EZD*E45709",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-04-12"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.0238,
14.616381
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "824352322",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "Norauto",
"ref": "FR*EZD*E20869,FR*EZD*E20870",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-04-29"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-60.99128,
14.612948
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "391279924",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "GIE CENTREAUTODIS",
"ref": "FR*EZD*E63031, FR*EZD*E63032, FR*EZD*E112993, FR*EZD*E112994",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2021-12-05"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.04941,
14.608132
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "539439463",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Diet Vert ",
"ref": "FR*EZD*E45695",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-04-08"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.03312,
14.614933
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "833393184",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "GHP",
"ref": "FR*EZD*E38632,FR*EZD*E38633",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2021-12-11"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.2253515,
14.8023925
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "219722196",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Mairie du Prêcheur",
"ref": "FR*EZD*E28306,FR*EZD*E28307",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-01-19"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.13439,
14.772175
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "813107943",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696 901 897",
"network": "New Peleen",
"ref": "FR*EZD*E28298,FR*EZD*E28299",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-01-18"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.02603,
14.61776
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "341861367",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Sodiva Citroên",
"ref": "FR*EZD*E26669, FR*EZD*E26670",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-02-24"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-60.99089,
14.631557
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "380129866",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Orange OGC",
"ref": "FR*EZD*E20775,FR*EZD*E20776",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-07-14"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.04474,
14.603169
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "380129866",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Orange Pointe de Grives",
"ref": "FR*EZD*E20873, FR*EZD*E20874,fr*ezd*e45685",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-07-14"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-60.99684,
14.609692
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "485186019",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Mr Bricolage Petit Manoir",
"ref": "FR*EZD*E63135,FR*EZD*E63136",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-04-26"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.08122,
14.615527
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "303188528",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Simar les Cycas",
"ref": "FR*EZD*E139858",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-08-01"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.09407341836829,
14.607158013009274
]
},
"properties": {
"amenity": "charging_station",
"operator": "GREEN TECHNOLOGIE",
"owner:ref:FR:SIREN": "393628136",
"email": "odile.coumau@ezdrive.fr",
"phone": "0696295629",
"network": "CASINO BATELIERE PLAZZA",
"ref": "VRT_NB_935, VRT_NB_936",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-04-04"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-60.93685837866524,
14.560713873777255
]
},
"properties": {
"amenity": "charging_station",
"operator": "GREEN TECHNOLOGIE",
"owner:ref:FR:SIREN": "219722238",
"email": "odile.coumau@ezdrive.fr",
"phone": "0696295629",
"network": "COMMUNE DE SAINT ESPRIT",
"ref": "VRT_NB_1392",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-11-16"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-60.902208073487955,
14.486405978847023
]
},
"properties": {
"amenity": "charging_station",
"operator": "GREEN TECHNOLOGIE",
"owner:ref:FR:SIREN": "219722204",
"email": "odile.coumau@ezdrive.fr",
"phone": "0696295629",
"network": "MARCHE DE RIVIERE PILOTE",
"ref": "VRT_NB_243_2",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-08-10"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-61.0396036414057,
14.670001347489613
]
},
"properties": {
"amenity": "charging_station",
"operator": "GREEN TECHNOLOGIE",
"owner:ref:FR:SIREN": "219740123",
"email": "odile.coumau@ezdrive.fr",
"phone": "0696295629",
"network": "972 - SAINT JOSEPH",
"ref": "VRT_NB_933",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-09-01"
}
}
]
}

View File

@ -0,0 +1,264 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-52.31936,
4.903192
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "L5AB9NSGAH",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-01-27",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-52.31936,
4.903192
]
},
"properties": {
"amenity": "charging_station",
"operator": "Freshmile SAS",
"email": "web@freshmile.com",
"phone": "0369246732",
"network": "Freshmile",
"ref": "L5AB9NSGAH",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-01-27",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-52.32188977802357,
4.909708809721746
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "500754130",
"email": "odile.coumau@ezdrive.fr",
"phone": "0696901897",
"network": "MIDAS - 973",
"ref": "FR*EZD*E45628",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "Mo-Fr 07:30-17:15, Sa 07:30-12:15",
"start_date": "2022-05-10",
"socket:type2_cable": "false"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-52.27712,
4.8580774
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "350072666",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Argos",
"ref": "FR*EZD*E20791,FR*EZD*E20792",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2022-01-05"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-52.272843,
4.909545
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "529558108",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Jo Froid",
"ref": "FR*EZD*E20887,FR*EZD*E20888",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2021-12-28"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-52.36621,
4.8792952
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "503449878",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Hôtel La Chaumière",
"ref": "FR*EZD*E45643",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2021-12-28"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-52.33534,
4.846775
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "337770341",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Hôtel La Marmotte",
"ref": "FR*EZD*E45632",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2021-12-28"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-52.305634,
4.938339
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "789951456",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Hôpital privé Saint Adrien",
"ref": "FR*EZD*E26679,FR*EZD*E26680",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2021-12-22"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-52.32731,
4.9351181
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "793418542",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Agence 973",
"ref": "FR*EZD*E45629",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2021-12-21"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-52.27651,
4.9046378
]
},
"properties": {
"amenity": "charging_station",
"operator": "Green Technologie",
"owner:ref:FR:SIREN": "219733094",
"email": "odile.coumeau@greentechnologie.net",
"phone": "696901897",
"network": "Maire de Remire-Montjoly",
"ref": "FR*EZD*E65528, FR*EZD*E65529",
"socket:typee": "yes",
"socket:type2": "yes",
"fee": "false",
"authentication:none": "true",
"reservation": "no",
"opening_hours": "24/7",
"start_date": "2021-12-30"
}
}
]
}

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,8 @@
}, },
"scripts": { "scripts": {
"start": "ts-node convert_to_osm_tags.ts --engine", "start": "ts-node convert_to_osm_tags.ts --engine",
"build:departments": "ts-node build_departments.ts", "departments": "ts-node build_departments.ts",
"variance": "ts-node make_variance_from_csv.ts",
"example": "ts-node convert_to_osm_tags.ts --engine=true --department=974 --source=\"./etalab_data/all.json\"", "example": "ts-node convert_to_osm_tags.ts --engine=true --department=974 --source=\"./etalab_data/all.json\"",
"simple": "ts-node convert_to_osm_tags.ts", "simple": "ts-node convert_to_osm_tags.ts",
"chargemap": "ts-node chargemap.ts", "chargemap": "ts-node chargemap.ts",