mirror of
https://forge.chapril.org/tykayn/wololo
synced 2025-10-04 17:04:53 +02:00
réinit
This commit is contained in:
commit
996524bc6d
107 changed files with 1295536 additions and 0 deletions
35
wip/irve_split_by_operators_from_json.ts
Normal file
35
wip/irve_split_by_operators_from_json.ts
Normal file
|
@ -0,0 +1,35 @@
|
|||
const stations = [
|
||||
{
|
||||
id: 1,
|
||||
name: 'Tesla Supercharger',
|
||||
address: '123 Main St',
|
||||
lat: 37.7749,
|
||||
lon: -122.4194,
|
||||
network_operator: 'Tesla'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: 'Electrify America',
|
||||
address: '456 Maple Ave',
|
||||
lat: 40.7128,
|
||||
lon: -74.0060,
|
||||
network_operator: 'Electrify America'
|
||||
},
|
||||
{id: 3, name: 'ChargePoint', address: '789 Oak St', lat: 34.0522, lon: -118.2437, network_operator: 'ChargePoint'},
|
||||
];
|
||||
|
||||
interface Station {
|
||||
[key: string]: string
|
||||
|
||||
}
|
||||
|
||||
function groupStationsByNetworkOperator(stations: Station[]) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
function groupStationsByNetworkOperatorAndWriteToFiles(stations: any[], outputDir: string) {
|
||||
|
||||
}
|
||||
|
||||
groupStationsByNetworkOperatorAndWriteToFiles(stations, "output")
|
Loading…
Add table
Add a link
Reference in a new issue