Nobil: Adapt to dropped support for Denmark, Finland and Iceland

This commit is contained in:
Robert Högberg
2025-10-06 21:28:51 +02:00
committed by Johan von Forstner
parent fa86c7c15a
commit 1d2a7e4af9
3 changed files with 3 additions and 6 deletions

View File

@@ -120,7 +120,7 @@ class NobilApiWrapper(
override suspend fun fullDownload(): FullDownloadResult<NobilReferenceData> {
var numTotalChargepoints = 0
arrayOf("DAN", "FIN", "ISL", "NOR", "SWE").forEach { countryCode ->
arrayOf("NOR", "SWE").forEach { countryCode ->
val request = NobilNumChargepointsRequest(apikey, countryCode)
val response = api.getNumChargepoints(request)
if (!response.isSuccessful) {

View File

@@ -125,9 +125,6 @@ data class NobilChargerStation(
Address(
chargerStationData.city,
when (chargerStationData.landCode) {
"DAN" -> "Denmark"
"FIN" -> "Finland"
"ISL" -> "Iceland"
"NOR" -> "Norway"
"SWE" -> "Sweden"
else -> ""

View File

@@ -172,8 +172,8 @@ in German.
### **NOBIL**
NOBIL lists charging stations in the Nordic countries (Denmark, Finland, Iceland, Norway, Sweden)
and provides an open [API](https://info.nobil.no/api) to access the data.
NOBIL lists charging stations in Norway and Sweden and provides an open
[API](https://info.nobil.no/api) to access the data.
To get a NOBIL API key, fill in and submit the form on [this page](https://info.nobil.no/api).
Then, wait for an an e-mail with your API key.