From 350dbf950b6541f60322793f27cd48457dbbccfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20H=C3=B6gberg?= Date: Tue, 19 Nov 2024 20:18:25 +0100 Subject: [PATCH] Add edit charger URLs The mailto URL for non-Swedish chargers need special handling --- app/src/main/java/net/vonforst/evmap/api/nobil/NobilModel.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/vonforst/evmap/api/nobil/NobilModel.kt b/app/src/main/java/net/vonforst/evmap/api/nobil/NobilModel.kt index 49e8330cd..d49614318 100644 --- a/app/src/main/java/net/vonforst/evmap/api/nobil/NobilModel.kt +++ b/app/src/main/java/net/vonforst/evmap/api/nobil/NobilModel.kt @@ -112,7 +112,10 @@ data class NobilChargerStation( chargepoints, null, "", - null, + when (chargerStationData.landCode) { + "SWE" -> "https://www.energimyndigheten.se/klimat/transporter/laddinfrastruktur/registrera-din-laddstation/elbilsagare/" + else -> "mailto:post@nobil.no?subject='" + chargerStationData.internationalId + ": Change request'" + }, null, chargerStationData.ocpiId != null || chargerStationData.updated.isAfter(LocalDateTime.now().minusMonths(6)),