Use German abbreviations for cardinal directions
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 27 May 2016 22:18:33 +0000 (00:18 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 27 May 2016 22:18:33 +0000 (00:18 +0200)
src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wettercom/WindDirection.kt

index 6335fe2..6e43934 100644 (file)
@@ -22,9 +22,9 @@ enum class WindDirection {
 fun String.toWindDirection(): WindDirection {
     return when (this) {
         "N" -> WindDirection.NORTH
-        "NE" -> WindDirection.NORTHEAST
-        "E" -> WindDirection.EAST
-        "SE" -> WindDirection.SOUTHEAST
+        "NO" -> WindDirection.NORTHEAST
+        "O" -> WindDirection.EAST
+        "SO" -> WindDirection.SOUTHEAST
         "S" -> WindDirection.SOUTH
         "SW" -> WindDirection.SOUTHWEST
         "W" -> WindDirection.WEST