mirror of
https://github.com/ev-map/EVMap.git
synced 2025-12-23 23:27:46 -05:00
Nobil: Adapt to dropped support for Denmark, Finland and Iceland
This commit is contained in:
committed by
Johan von Forstner
parent
fa86c7c15a
commit
1d2a7e4af9
@@ -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) {
|
||||
|
||||
@@ -125,9 +125,6 @@ data class NobilChargerStation(
|
||||
Address(
|
||||
chargerStationData.city,
|
||||
when (chargerStationData.landCode) {
|
||||
"DAN" -> "Denmark"
|
||||
"FIN" -> "Finland"
|
||||
"ISL" -> "Iceland"
|
||||
"NOR" -> "Norway"
|
||||
"SWE" -> "Sweden"
|
||||
else -> ""
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user