Skip to content

Commit

Permalink
add supported countries for Chargeprice
Browse files Browse the repository at this point in the history
fixes #234
  • Loading branch information
johan12345 committed Sep 20, 2022
1 parent b0aeb8a commit b9da72e
Showing 1 changed file with 40 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ interface ChargepriceApi {

@JvmStatic
fun isCountrySupported(country: String, dataSource: String): Boolean = when (dataSource) {
// list of countries updated 2021/08/24
"goingelectric" -> country in listOf(
// list of countries according to Chargeprice.app, 2021/08/24
"Deutschland",
"Österreich",
"Schweiz",
Expand All @@ -133,9 +133,28 @@ interface ChargepriceApi {
"Italien",
"Spanien",
"Großbritannien",
"Irland"
"Irland",
// additional countries found 2022/09/17, https://github.com/johan12345/EVMap/issues/234
"Finnland",
"Lettland",
"Litauen",
"Estland",
"Liechtenstein",
"Rumänien",
"Slowakei",
"Slowenien",
"Polen",
"Serbien",
"Bulgarien",
"Kosovo",
"Montenegro",
"Albanien",
"Griechenland",
"Portugal",
"Island"
)
"openchargemap" -> country in listOf(
// list of countries according to Chargeprice.app, 2021/08/24
"DE",
"AT",
"CH",
Expand All @@ -153,7 +172,25 @@ interface ChargepriceApi {
"IT",
"ES",
"GB",
"IE"
"IE",
// additional countries found 2022/09/17, https://github.com/johan12345/EVMap/issues/234
"FI",
"LV",
"LT",
"EE",
"LI",
"RO",
"SK",
"SI",
"PL",
"RS",
"BG",
"XK",
"ME",
"AL",
"GR",
"PT",
"IS"
)
else -> false
}
Expand Down

0 comments on commit b9da72e

Please sign in to comment.