Refactoring: use new rewrite-config to simplify charging stations script

This commit is contained in:
Pieter Vander Vennet 2023-12-12 03:45:06 +01:00
parent f015604000
commit 067fb549c1
4 changed files with 920 additions and 4203 deletions

File diff suppressed because it is too large Load diff

View file

@ -199,6 +199,152 @@
{
"id": "$$$"
},
{
"id": "rewritten-questions",
"rewrite": {
"sourceString": [
"{{id}}",
"{{key}}",
"{{description}}",
"{{image}}",
"{{commonVoltages}}",
"{{commonCurrent}}",
"{{commonOutput}}"
]
},
"subexpand": {
"mappings": [
"{{commonVoltages}}",
"{{commonCurrent}}",
"{{commonOutput}}"
]
},
"renderings": [
{
"id": "plugs-amount-{{id}}",
"question": {
"en": "How much plugs of type {{description}} are available here?",
"nl": "Hoeveel stekkers van type {{description}} heeft dit oplaadpunt?",
"ca": "Quants connectors del tipus {{description}} hi han disponibles aquí?",
"cs": "Kolik zástrček typu {{description}} je k dispozici?",
"da": "Hvor mange stik af typen {{description}} er tilgængelige her?",
"de": "Wie viele Stecker vom Typ {{description}} sind hier vorhanden?"
},
"render": {
"en": "There are <b class='text-xl'>{{{key}}}</b> plugs of type {{description}} available here",
"nl": "Hier zijn <b class='text-xl'>{{{key}}}</b> stekkers van het type {{description}}"
},
"icon": "./assets/layers/charging_station/{{image}}",
"freeform": {
"key": "{{key}}",
"type": "pnat"
},
"condition": {
"and": [
"{{key}}~*",
"{{key}}!=0"
]
}
},
{
"id": "voltage-{{id}}",
"labels": [
"technical"
],
"question": {
"en": "What voltage do the plugs with {{description}} offer?",
"nl": "Welke spanning levert de stekker van type {{description}}",
"cs": "Jaké napětí mají zástrčky s {{description}} ?",
"de": "Welche Spannung liefern die {{description}}?"
},
"render": {
"en": "{{description}} outputs {canonical({{key}}:voltage)}",
"nl": "{{description}} heeft een spanning van {canonical({{key}}:voltage)}"
},
"freeform": {
"key": "{{key}}:voltage",
"type": "pfloat"
},
"mappings": {
"if": "{{key}}:voltage={{commonVoltages}} V",
"then": {
"en": "{{description}} outputs {{commonVoltages}} volt",
"nl": "{{description}} heeft een spanning van {{commonVoltages}} volt",
"cs": "{{description}} výstup {{commonVoltages}} voltů",
"de": "{{description}} liefert {{commonVoltages}} Volt"
}
},
"condition": {
"and": [
"{{key}}~*",
"{{key}}!=0"
]
}
},
{
"id": "current-{{id}}",
"labels": [
"technical"
],
"question": {
"en": "What current do the plugs with {{description}} offer?",
"nl": "Welke stroom levert de stekker van type {{description}}?"
},
"render": {
"en": "{{description}} outputs at most {canonical({{key}}:current)}",
"nl": "{{description}} levert een stroom van maximaal {canonical({{key}}:current)}"
},
"freeform": {
"key": "{{key}}:current",
"type": "pfloat"
},
"mappings": {
"if": "{{key}}:current={{commonCurrent}} A",
"then": {
"en": "{{description}} outputs at most {{commonCurrent}} A",
"nl": "{{description}} levert een stroom van maximaal {{commonCurrent}} A"
}
},
"condition": {
"and": [
"{{key}}~*",
"{{key}}!=0"
]
}
},
{
"id": "power-output-{{id}}",
"labels": [
"technical"
],
"question": {
"en": "What power output does a single plug of type {{description}} offer?",
"nl": "Welk vermogen levert een enkele stekker van type {{description}}?"
},
"render": {
"en": "{{description}} outputs at most {canonical({{key}}:output)}",
"nl": "{{description}} levert een vermogen van maximaal {canonical({{key}}:output)}"
},
"freeform": {
"key": "{{key}}:output",
"type": "pfloat"
},
"mappings": {
"if": "{{key}}:output={{commonOutput}}",
"then": {
"en": "{{description}} outputs at most {{commonOutput}} A",
"nl": "{{description}} levert een vermogen van maximaal {{commonOutput}} A"
}
},
"condition": {
"and": [
"{{key}}~*",
"{{key}}!=0"
]
}
}
]
},
{
"builtin": "opening_hours_24_7",
"override": {
@ -874,67 +1020,14 @@
],
"units": [
{
"appliesToKey": [
"maxstay"
],
"applicableUnits": [
{
"canonicalDenomination": "minutes",
"canonicalDenominationSingular": "minute",
"alternativeDenomination": [
"m",
"min",
"mins",
"minuten",
"mns"
],
"human": {
"en": " minutes",
"nl": " minuten"
},
"humanSingular": {
"en": " minute",
"nl": " minuut"
}
},
{
"canonicalDenomination": "hours",
"canonicalDenominationSingular": "hour",
"alternativeDenomination": [
"h",
"hrs",
"hours",
"u",
"uur",
"uren"
],
"human": {
"en": " hours",
"nl": " uren"
},
"humanSingular": {
"en": " hour",
"nl": " uur"
}
},
{
"canonicalDenomination": "days",
"canonicalDenominationSingular": "day",
"alternativeDenomination": [
"dys",
"dagen",
"dag"
],
"human": {
"en": " days",
"nl": " day"
},
"humanSingular": {
"en": " day",
"nl": " dag"
}
}
]
"maxstay": {
"quantity": "duration",
"denominations": [
"minutes",
"hours",
"days"
]
}
}
],
"allowMove": {
@ -950,4 +1043,4 @@
},
"neededChangesets": 10
}
}
}

View file

@ -1,9 +1,13 @@
import {readFileSync, writeFileSync} from "fs";
import {Utils} from "../../../src/Utils";
import { readFileSync, writeFileSync } from "fs";
import { Utils } from "../../../src/Utils";
import ScriptUtils from "../../../scripts/ScriptUtils";
import {LayerConfigJson} from "../../../src/Models/ThemeConfig/Json/LayerConfigJson";
import { LayerConfigJson } from "../../../src/Models/ThemeConfig/Json/LayerConfigJson";
import FilterConfigJson from "../../../src/Models/ThemeConfig/Json/FilterConfigJson";
import {QuestionableTagRenderingConfigJson} from "../../../src/Models/ThemeConfig/Json/QuestionableTagRenderingConfigJson";
import {
QuestionableTagRenderingConfigJson
} from "../../../src/Models/ThemeConfig/Json/QuestionableTagRenderingConfigJson";
import RewritableConfigJson from "../../../src/Models/ThemeConfig/Json/RewritableConfigJson";
import { TagRenderingConfigJson } from "../../../src/Models/ThemeConfig/Json/TagRenderingConfigJson";
function colonSplit(value: string): string[] {
@ -12,6 +16,7 @@ function colonSplit(value: string): string[] {
function loadCsv(file): {
key: string,
id: string,
image: string,
description: Map<string, string>,
countryWhiteList?: string[],
@ -49,16 +54,18 @@ function loadCsv(file): {
}
}
v["description"] = descriptionTranslations
if(v["id"] === ""){
v["id"] = v["key"]
}
return <any>v;
}))
}
// SMall script to output the properties of the types.csv as json to add in the tagRenderingGroup. Should be copied manually
function run(file, protojson) {
const overview_question_answers = []
const questions: (QuestionableTagRenderingConfigJson & { "id": string })[] = []
const technicalQuestions: (QuestionableTagRenderingConfigJson & { "id": string })[] = []
const filterOptions: { question: any, osmTags?: string } [] = [
{
question: {
@ -69,6 +76,24 @@ function run(file, protojson) {
]
const entries = loadCsv(file)
const protoString = readFileSync(protojson, "utf8")
const proto = <LayerConfigJson>JSON.parse(protoString)
{
// Add the entities to the 'rewrite-able part'
let specificQuestions: RewritableConfigJson<TagRenderingConfigJson> = <any>proto.tagRenderings.find(tr => tr["rewrite"] !== undefined && !(tr["rewrite"]["into"]?.length > 0));
specificQuestions.rewrite.into = entries.map(e => [
e.id,
e.key,
Utils.MapToObj(e.description, v => v),
e.image,
e.commonVoltages,
e.commonCurrents,
e.commonOutputs
]);
}
for (let i = 0; i < entries.length; i++) {
const e = entries[i];
const txt = {
@ -140,126 +165,6 @@ function run(file, protojson) {
const descrWithImage_en = `<div style='display: inline-block'><b>${e.description.get("en")}</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/${e.image}'/></div>`
const descrWithImage_nl = `<div style='display: inline-block'><b>${e.description.get("nl")}</b> <img style='width:1rem; display: inline-block' src='./assets/layers/charging_station/${e.image}'/></div>`
questions.push({
"id": "plugs-" + i,
question: {
en: `How much plugs of type ${descrWithImage_en} are available here?`,
nl: `Hoeveel stekkers van type ${descrWithImage_nl} heeft dit oplaadpunt?`,
},
render: {
en: `There are <b class='text-xl'>{${e.key}}</b> plugs of type ${descrWithImage_en} available here`,
nl: `Hier zijn <b class='text-xl'>{${e.key}}</b> stekkers van het type ${descrWithImage_nl}`
},
freeform: {
key: e.key,
type: "pnat"
},
condition: {
and: [`${e.key}~*`, `${e.key}!=0`]
}
})
technicalQuestions.push({
"id": "voltage-" + i,
labels: ["technical"],
question: {
en: `What voltage do the plugs with ${descrWithImage_en} offer?`,
nl: `Welke spanning levert de stekker van type ${descrWithImage_nl}`
},
render: {
en: `${descrWithImage_en} outputs {${e.key}:voltage} volt`,
nl: `${descrWithImage_nl} heeft een spanning van {${e.key}:voltage} volt`
},
freeform: {
key: `${e.key}:voltage`,
type: "pfloat"
},
mappings: e.commonVoltages.map(voltage => {
return {
if: `${e.key}:voltage=${voltage} V`,
then: {
en: `${e.description.get("en")} outputs ${voltage} volt`,
nl: `${e.description.get("nl")} heeft een spanning van ${voltage} volt`
},
icon: {
path: `./assets/layers/charging_station/${e.image}`,
class:"medium"
}
}
}),
condition: {
and: [`${e.key}~*`, `${e.key}!=0`]
}
})
technicalQuestions.push({
"id": "current-" + i,
labels:["technical"],
question: {
en: `What current do the plugs with ${descrWithImage_en} offer?`,
nl: `Welke stroom levert de stekker van type ${descrWithImage_nl}?`,
},
render: {
en: `${descrWithImage_en} outputs at most {${e.key}:current}A`,
nl: `${descrWithImage_nl} levert een stroom van maximaal {${e.key}:current}A`
},
freeform: {
key: `${e.key}:current`,
type: "pfloat"
},
mappings: e.commonCurrents.map(current => {
return {
if: `${e.key}:current=${current} A`,
then: {
en: `${e.description.get("en")} outputs at most ${current} A`,
nl: `${e.description.get("nl")} levert een stroom van maximaal ${current} A`
},
icon: {
path: `./assets/layers/charging_station/${e.image}`,
class:"medium"
}
}
}),
condition: {
and: [`${e.key}~*`, `${e.key}!=0`]
}
})
technicalQuestions.push({
"id": "power-output-" + i,
labels:["technical"],
question: {
en: `What power output does a single plug of type ${descrWithImage_en} offer?`,
nl: `Welk vermogen levert een enkele stekker van type ${descrWithImage_nl}?`,
},
render: {
en: `${descrWithImage_en} outputs at most {${e.key}:output}`,
nl: `${descrWithImage_nl} levert een vermogen van maximaal {${e.key}:output}`
},
freeform: {
key: `${e.key}:output`,
type: "pfloat"
},
mappings: e.commonOutputs.map(output => {
return {
if: `${e.key}:output=${output}`,
then: {
en: `${e.description.get("en")} outputs at most ${output} A`,
nl: `${e.description.get("nl")} levert een vermogen van maximaal ${output} A`
},
icon: {
path: `./assets/layers/charging_station/${e.image}`,
class:"medium"
}
}
}),
condition: {
and: [`${e.key}~*`, `${e.key}!=0`]
}
})
filterOptions.push({
question: {
en: `Has a ${descrWithImage_en} connector`,
@ -278,14 +183,11 @@ function run(file, protojson) {
"multiAnswer": true,
"mappings": overview_question_answers
}
questions.unshift(toggles)
questions.push(...technicalQuestions)
const stringified = questions.map(q => JSON.stringify(q, null, " "))
let protoString = readFileSync(protojson, "utf8")
protoString = protoString.replace(/{[ \t\n]*"id"[ \t\n]*:[ \t\n]*"\$\$\$"[ \t\n]*}/, stringified.join(",\n"))
const proto = <LayerConfigJson>JSON.parse(protoString)
const insertQuestionsAt = proto.tagRenderings.findIndex(tr => tr["id"] === "$$$")
proto.tagRenderings.splice(insertQuestionsAt, 1, toggles)
if(typeof proto.filter === "string"){
throw "Filters of a the protojson should be a list of FilterConfigJsons"
}
@ -294,6 +196,9 @@ function run(file, protojson) {
if (typeof tr === "string") {
return;
}
if(tr["rewrite"]){
return
}
if (tr["id"] === undefined || typeof tr["id"] !== "string") {
console.error(tr)
throw "Every tagrendering should have an id, acting as comment"
@ -305,52 +210,14 @@ function run(file, protojson) {
options: filterOptions
})
const importedUnits = {}
for (const entry of entries) {
importedUnits[entry.key+":voltage"] = "voltage"
importedUnits[entry.key+":current"] = "current"
importedUnits[entry.key+":output"] = { quantity: "power", "denominations":["mW","kW"] }
}
const extraUnits = [
{
appliesToKey: entries.map(e => e.key + ":voltage"),
applicableUnits: [{
canonicalDenomination: 'V',
alternativeDenomination: ["v", "volt", "voltage", 'V', 'Volt'],
human: {
en: "Volts",
nl: "volt"
}
}],
eraseInvalidValues: true
},
{
appliesToKey: entries.map(e => e.key + ":current"),
applicableUnits: [{
canonicalDenomination: 'A',
alternativeDenomination: ["a", "amp", "amperage", 'A'],
human: {
en: "A",
nl: "A"
}
}],
eraseInvalidValues: true
},
{
appliesToKey: entries.map(e => e.key + ":output"),
applicableUnits: [{
canonicalDenomination: 'kW',
alternativeDenomination: ["kilowatt"],
human: {
en: "kilowatt",
nl: "kilowatt"
}
},
{
canonicalDenomination: 'mW',
alternativeDenomination: ["megawatt"],
human: {
en: "megawatt",
nl: "megawatt"
}
}],
eraseInvalidValues: true
},
const extraUnits = [importedUnits
];
if (proto["units"] == undefined) {
@ -366,7 +233,6 @@ async function queryTagInfo(file, type, clean: ((s: string) => string)) {
const value = await ScriptUtils.TagInfoHistogram(e.key + ":" + type)
const result = value.data
const counts = new Map<string, number>()
// console.log(result)
for (const r of result) {
let key = r.value;
key = clean(key)
@ -419,7 +285,7 @@ function mergeTranslations(origPath, newConfig: LayerConfigJson) {
try {
console.log("Generating the charging_station.json file")
run("types.csv", "charging_station.protojson")
run("types.csv", "charging_station.proto.json")
/*/
queryTagInfo("types.csv","voltage", s => s.trim())
queryTagInfo("types.csv", "current", s => s.trim())

View file

@ -1,17 +1,17 @@
key,image,description:en,countryWhiteList,countryBlackList,commonVoltages,commonCurrents,commonOutputs,description:nl,associatedVehicleTypes,neverAssociatedWith,extraVisualisationCondition
socket:schuko,CEE7_4F.svg,<b>Schuko wall plug</b> without ground pin (CEE7/4 type F),af;al;dz;as;ad;ao;am;aw;az;by;bt;ba;bg;cv;td;cl;hr;dk;eg;ee;et;fo;fr;pf;ge;gr;gl;gn;gw;is;id;ir;jo;kz;kg;la;lv;lr;ly;lt;lu;mo;mr;md;mc;mn;me;mz;nl;nc;ne;kp;mk;pt;qa;ro;ru;rw;sm;sk;si;kr;es;sr;tj;th;tl;tr;tm;ua;uy;uz;vn,,230,16,3.6 kW,<b>Schuko stekker</b> zonder aardingspin (CEE7/4 type F),*,,
socket:typee,TypeE.svg,<b>European wall plug</b> with ground pin (CEE7/4 type E),be;bj;bf;bi;cm;cf;td;km;cz;dk;dj;gq;et;fo;fr;gf;pf;gl;gp;gw;la;lr;mg;ml;mq;mr;mu;mc;mn;ma;ne;pl;pt;rw;mf;pm;sn;sk;sy;tl;tn;uz,,230,16,3 kW;22 kW;,<b>Europese stekker</b> met aardingspin (CEE7/4 type E),*,,
socket:chademo,Chademo_type4.svg,<b>Chademo</b>,,,500,120,50 kW,<b>Chademo</b>,car;motorcar;hgv;bus,bicycle;scooter,
socket:type1_cable,Type1_J1772.svg,<b>Type 1 with cable</b> (J1772),,,200;240,32,3.7 kW;7 kW,<b>Type 1 met kabel</b> (J1772),car;motorcar;hgv;bus,bicycle;scooter,
socket:type1,Type1_J1772.svg,<b>Type 1 <i>without</i> cable</b> (J1772),,,200;240,32,3.7 kW;6.6 kW;7 kW;7.2 kW,<b>Type 1 <i>zonder</i> kabel</b> (J1772),car;motorcar;hgv;bus,bicycle;scooter,
socket:type1_combo,Type1-ccs.svg,<b>Type 1 CCS</b> (aka Type 1 Combo),,,400;1000,50;125,50 kW;62.5 kW;150 kW;350 kW;,<b>Type 1 CCS</b> (ook gekend als Type 1 Combo),car;motorcar;hgv;bus,bicycle;scooter,
socket:tesla_supercharger,Tesla-hpwc-model-s.svg,<b>Tesla Supercharger</b>,,,480,125;350,120 kW;150 kW;250 kW,<b>Tesla Supercharger</b>,car;motorcar;hgv;bus,bicycle;scooter,
socket:type2,Type2_socket.svg,<b>Type 2</b> (mennekes),,,230;400,16;32,11 kW;22 kW,<b>Type 2</b> (mennekes),car;motorcar;hgv;bus,bicycle;scooter,
socket:type2_combo,Type2_CCS.svg,<b>Type 2 CCS</b> (mennekes),,,500;920,125;350,50 kW,<b>Type 2 CCS</b> (mennekes),car;motorcar;hgv;bus,bicycle;scooter,
socket:type2_cable,Type2_tethered.svg,<b>Type 2 with cable</b> (mennekes),,,230;400,16;32,11 kW;22 kW,<b>Type 2 met kabel</b> (J1772),car;motorcar;hgv;bus,bicycle;scooter,
socket:tesla_supercharger_ccs,Type2_CCS.svg,<b>Tesla Supercharger CCS</b> (a branded type2_css),,,500;920,125;350,50 kW,<b>Tesla Supercharger CCS</b> (een type2 CCS met Tesla-logo),car;motorcar;hgv;bus,bicycle;scooter,
socket:tesla_destination,Tesla-hpwc-model-s.svg,<b>Tesla Supercharger (destination)</b>,us,,480,125;350,120 kW;150 kW;250 kW,<b>Tesla Supercharger (destination)</b>,car;motorcar;hgv;bus,bicycle;scooter,_country=us
socket:tesla_destination,Type2_tethered.svg,<b>Tesla supercharger (destination)</b> (A Type 2 with cable branded as tesla),,us,230;400,16;32,11 kW;22 kW,<b>Tesla supercharger (destination</b> (Een Type 2 met kabel en Tesla-logo),car;motorcar;hgv;bus,bicycle;scooter,_country!=us
socket:USB-A,usb_port.svg,<b>USB</b> to charge phones and small electronics,,,5,1;2,5W;10W,<b>USB</b> om GSMs en kleine electronica op te laden,*,,
socket:bosch_3pin,bosch-3pin.svg,<b>Bosch Active Connect with 3 pins</b> and cable,,,,,,<b>Bosch Active Connect met 3 pinnen</b> aan een kabel,bicycle,car;motorcar;hgv;bus,
socket:bosch_5pin,bosch-5pin.svg,<b>Bosch Active Connect with 5 pins</b> and cable,,,,,,<b>Bosch Active Connect met 5 pinnen</b> aan een kabel,bicycle,car;motorcar;hgv;bus,
key,id,image,description:en,countryWhiteList,countryBlackList,commonVoltages,commonCurrents,commonOutputs,description:nl,associatedVehicleTypes,neverAssociatedWith,extraVisualisationCondition
socket:schuko,,CEE7_4F.svg,<b>Schuko wall plug</b> without ground pin (CEE7/4 type F),af;al;dz;as;ad;ao;am;aw;az;by;bt;ba;bg;cv;td;cl;hr;dk;eg;ee;et;fo;fr;pf;ge;gr;gl;gn;gw;is;id;ir;jo;kz;kg;la;lv;lr;ly;lt;lu;mo;mr;md;mc;mn;me;mz;nl;nc;ne;kp;mk;pt;qa;ro;ru;rw;sm;sk;si;kr;es;sr;tj;th;tl;tr;tm;ua;uy;uz;vn,,230,16,3.6 kW,<b>Schuko stekker</b> zonder aardingspin (CEE7/4 type F),*,,
socket:typee,,TypeE.svg,<b>European wall plug</b> with ground pin (CEE7/4 type E),be;bj;bf;bi;cm;cf;td;km;cz;dk;dj;gq;et;fo;fr;gf;pf;gl;gp;gw;la;lr;mg;ml;mq;mr;mu;mc;mn;ma;ne;pl;pt;rw;mf;pm;sn;sk;sy;tl;tn;uz,,230,16,3 kW;22 kW;,<b>Europese stekker</b> met aardingspin (CEE7/4 type E),*,,
socket:chademo,,Chademo_type4.svg,<b>Chademo</b>,,,500,120,50 kW,<b>Chademo</b>,car;motorcar;hgv;bus,bicycle;scooter,
socket:type1_cable,,Type1_J1772.svg,<b>Type 1 with cable</b> (J1772),,,200;240,32,3.7 kW;7 kW,<b>Type 1 met kabel</b> (J1772),car;motorcar;hgv;bus,bicycle;scooter,
socket:type1,,Type1_J1772.svg,<b>Type 1 <i>without</i> cable</b> (J1772),,,200;240,32,3.7 kW;6.6 kW;7 kW;7.2 kW,<b>Type 1 <i>zonder</i> kabel</b> (J1772),car;motorcar;hgv;bus,bicycle;scooter,
socket:type1_combo,,Type1-ccs.svg,<b>Type 1 CCS</b> (aka Type 1 Combo),,,400;1000,50;125,50 kW;62.5 kW;150 kW;350 kW;,<b>Type 1 CCS</b> (ook gekend als Type 1 Combo),car;motorcar;hgv;bus,bicycle;scooter,
socket:tesla_supercharger,,Tesla-hpwc-model-s.svg,<b>Tesla Supercharger</b>,,,480,125;350,120 kW;150 kW;250 kW,<b>Tesla Supercharger</b>,car;motorcar;hgv;bus,bicycle;scooter,
socket:type2,,Type2_socket.svg,<b>Type 2</b> (mennekes),,,230;400,16;32,11 kW;22 kW,<b>Type 2</b> (mennekes),car;motorcar;hgv;bus,bicycle;scooter,
socket:type2_combo,,Type2_CCS.svg,<b>Type 2 CCS</b> (mennekes),,,500;920,125;350,50 kW,<b>Type 2 CCS</b> (mennekes),car;motorcar;hgv;bus,bicycle;scooter,
socket:type2_cable,,Type2_tethered.svg,<b>Type 2 with cable</b> (mennekes),,,230;400,16;32,11 kW;22 kW,<b>Type 2 met kabel</b> (J1772),car;motorcar;hgv;bus,bicycle;scooter,
socket:tesla_supercharger_ccs,,Type2_CCS.svg,<b>Tesla Supercharger CCS</b> (a branded type2_css),,,500;920,125;350,50 kW,<b>Tesla Supercharger CCS</b> (een type2 CCS met Tesla-logo),car;motorcar;hgv;bus,bicycle;scooter,
socket:tesla_destination,socket:tesla_destination_us,Tesla-hpwc-model-s.svg,<b>Tesla Supercharger (destination)</b>,us,,480,125;350,120 kW;150 kW;250 kW,<b>Tesla Supercharger (destination)</b>,car;motorcar;hgv;bus,bicycle;scooter,_country=us
socket:tesla_destination,,Type2_tethered.svg,<b>Tesla supercharger (destination)</b> (A Type 2 with cable branded as tesla),,us,230;400,16;32,11 kW;22 kW,<b>Tesla supercharger (destination</b> (Een Type 2 met kabel en Tesla-logo),car;motorcar;hgv;bus,bicycle;scooter,_country!=us
socket:USB-A,,usb_port.svg,<b>USB</b> to charge phones and small electronics,,,5,1;2,5W;10W,<b>USB</b> om GSMs en kleine electronica op te laden,*,,
socket:bosch_3pin,,bosch-3pin.svg,<b>Bosch Active Connect with 3 pins</b> and cable,,,,,,<b>Bosch Active Connect met 3 pinnen</b> aan een kabel,bicycle,car;motorcar;hgv;bus,
socket:bosch_5pin,,bosch-5pin.svg,<b>Bosch Active Connect with 5 pins</b> and cable,,,,,,<b>Bosch Active Connect met 5 pinnen</b> aan een kabel,bicycle,car;motorcar;hgv;bus,

1 key id image description:en countryWhiteList countryBlackList commonVoltages commonCurrents commonOutputs description:nl associatedVehicleTypes neverAssociatedWith extraVisualisationCondition
2 socket:schuko CEE7_4F.svg <b>Schuko wall plug</b> without ground pin (CEE7/4 type F) af;al;dz;as;ad;ao;am;aw;az;by;bt;ba;bg;cv;td;cl;hr;dk;eg;ee;et;fo;fr;pf;ge;gr;gl;gn;gw;is;id;ir;jo;kz;kg;la;lv;lr;ly;lt;lu;mo;mr;md;mc;mn;me;mz;nl;nc;ne;kp;mk;pt;qa;ro;ru;rw;sm;sk;si;kr;es;sr;tj;th;tl;tr;tm;ua;uy;uz;vn 230 16 3.6 kW <b>Schuko stekker</b> zonder aardingspin (CEE7/4 type F) *
3 socket:typee TypeE.svg <b>European wall plug</b> with ground pin (CEE7/4 type E) be;bj;bf;bi;cm;cf;td;km;cz;dk;dj;gq;et;fo;fr;gf;pf;gl;gp;gw;la;lr;mg;ml;mq;mr;mu;mc;mn;ma;ne;pl;pt;rw;mf;pm;sn;sk;sy;tl;tn;uz 230 16 3 kW;22 kW; <b>Europese stekker</b> met aardingspin (CEE7/4 type E) *
4 socket:chademo Chademo_type4.svg <b>Chademo</b> 500 120 50 kW <b>Chademo</b> car;motorcar;hgv;bus bicycle;scooter
5 socket:type1_cable Type1_J1772.svg <b>Type 1 with cable</b> (J1772) 200;240 32 3.7 kW;7 kW <b>Type 1 met kabel</b> (J1772) car;motorcar;hgv;bus bicycle;scooter
6 socket:type1 Type1_J1772.svg <b>Type 1 <i>without</i> cable</b> (J1772) 200;240 32 3.7 kW;6.6 kW;7 kW;7.2 kW <b>Type 1 <i>zonder</i> kabel</b> (J1772) car;motorcar;hgv;bus bicycle;scooter
7 socket:type1_combo Type1-ccs.svg <b>Type 1 CCS</b> (aka Type 1 Combo) 400;1000 50;125 50 kW;62.5 kW;150 kW;350 kW; <b>Type 1 CCS</b> (ook gekend als Type 1 Combo) car;motorcar;hgv;bus bicycle;scooter
8 socket:tesla_supercharger Tesla-hpwc-model-s.svg <b>Tesla Supercharger</b> 480 125;350 120 kW;150 kW;250 kW <b>Tesla Supercharger</b> car;motorcar;hgv;bus bicycle;scooter
9 socket:type2 Type2_socket.svg <b>Type 2</b> (mennekes) 230;400 16;32 11 kW;22 kW <b>Type 2</b> (mennekes) car;motorcar;hgv;bus bicycle;scooter
10 socket:type2_combo Type2_CCS.svg <b>Type 2 CCS</b> (mennekes) 500;920 125;350 50 kW <b>Type 2 CCS</b> (mennekes) car;motorcar;hgv;bus bicycle;scooter
11 socket:type2_cable Type2_tethered.svg <b>Type 2 with cable</b> (mennekes) 230;400 16;32 11 kW;22 kW <b>Type 2 met kabel</b> (J1772) car;motorcar;hgv;bus bicycle;scooter
12 socket:tesla_supercharger_ccs Type2_CCS.svg <b>Tesla Supercharger CCS</b> (a branded type2_css) 500;920 125;350 50 kW <b>Tesla Supercharger CCS</b> (een type2 CCS met Tesla-logo) car;motorcar;hgv;bus bicycle;scooter
13 socket:tesla_destination socket:tesla_destination_us Tesla-hpwc-model-s.svg <b>Tesla Supercharger (destination)</b> us 480 125;350 120 kW;150 kW;250 kW <b>Tesla Supercharger (destination)</b> car;motorcar;hgv;bus bicycle;scooter _country=us
14 socket:tesla_destination Type2_tethered.svg <b>Tesla supercharger (destination)</b> (A Type 2 with cable branded as tesla) us 230;400 16;32 11 kW;22 kW <b>Tesla supercharger (destination</b> (Een Type 2 met kabel en Tesla-logo) car;motorcar;hgv;bus bicycle;scooter _country!=us
15 socket:USB-A usb_port.svg <b>USB</b> to charge phones and small electronics 5 1;2 5W;10W <b>USB</b> om GSMs en kleine electronica op te laden *
16 socket:bosch_3pin bosch-3pin.svg <b>Bosch Active Connect with 3 pins</b> and cable <b>Bosch Active Connect met 3 pinnen</b> aan een kabel bicycle car;motorcar;hgv;bus
17 socket:bosch_5pin bosch-5pin.svg <b>Bosch Active Connect with 5 pins</b> and cable <b>Bosch Active Connect met 5 pinnen</b> aan een kabel bicycle car;motorcar;hgv;bus