Skip to content

Commit

Permalink
Add edit charger URLs
Browse files Browse the repository at this point in the history
The mailto URL for non-Swedish chargers need special handling
  • Loading branch information
robho committed Nov 19, 2024
1 parent b7d8b73 commit 350dbf9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/net/vonforst/evmap/api/nobil/NobilModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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:[email protected]?subject='" + chargerStationData.internationalId + ": Change request'"
},
null,
chargerStationData.ocpiId != null ||
chargerStationData.updated.isAfter(LocalDateTime.now().minusMonths(6)),
Expand Down

0 comments on commit 350dbf9

Please sign in to comment.