Skip to content

Commit 1d2a7e4

Browse files
robhojohan12345
authored andcommitted
Nobil: Adapt to dropped support for Denmark, Finland and Iceland
1 parent fa86c7c commit 1d2a7e4

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

app/src/main/java/net/vonforst/evmap/api/nobil/NobilApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class NobilApiWrapper(
120120

121121
override suspend fun fullDownload(): FullDownloadResult<NobilReferenceData> {
122122
var numTotalChargepoints = 0
123-
arrayOf("DAN", "FIN", "ISL", "NOR", "SWE").forEach { countryCode ->
123+
arrayOf("NOR", "SWE").forEach { countryCode ->
124124
val request = NobilNumChargepointsRequest(apikey, countryCode)
125125
val response = api.getNumChargepoints(request)
126126
if (!response.isSuccessful) {

app/src/main/java/net/vonforst/evmap/api/nobil/NobilModel.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ data class NobilChargerStation(
125125
Address(
126126
chargerStationData.city,
127127
when (chargerStationData.landCode) {
128-
"DAN" -> "Denmark"
129-
"FIN" -> "Finland"
130-
"ISL" -> "Iceland"
131128
"NOR" -> "Norway"
132129
"SWE" -> "Sweden"
133130
else -> ""

doc/api_keys.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ in German.
172172

173173
### **NOBIL**
174174

175-
NOBIL lists charging stations in the Nordic countries (Denmark, Finland, Iceland, Norway, Sweden)
176-
and provides an open [API](https://info.nobil.no/api) to access the data.
175+
NOBIL lists charging stations in Norway and Sweden and provides an open
176+
[API](https://info.nobil.no/api) to access the data.
177177

178178
To get a NOBIL API key, fill in and submit the form on [this page](https://info.nobil.no/api).
179179
Then, wait for an an e-mail with your API key.

0 commit comments

Comments
 (0)