1 package net.pterodactylus.rhynodge.webpages.weather
4 * The direction the wind comes from.
6 * @author [David ‘Bombe’ Roden](mailto:bombe@pterodactylus.net)
8 enum class WindDirection(val arrow: String) {
30 fun String.toWindDirection(): WindDirection {
32 "N", "Nord" -> WindDirection.NORTH
33 "Nordnordost" -> WindDirection.NORTHNORTHEAST
34 "NO", "Nordost" -> WindDirection.NORTHEAST
35 "Ostnordost" -> WindDirection.EASTNORTHEAST
36 "O", "Ost" -> WindDirection.EAST
37 "Ostsüdost" -> WindDirection.EASTSOUTHEAST
38 "SO", "Südost" -> WindDirection.SOUTHEAST
39 "Südsüdost" -> WindDirection.SOUTHSOUTHEAST
40 "S", "Süd" -> WindDirection.SOUTH
41 "Südsüdwest" -> WindDirection.SOUTHSOUTHWEST
42 "SW", "Südwest" -> WindDirection.SOUTHWEST
43 "Westsüdwest" -> WindDirection.WESTSOUTHWEST
44 "W", "West" -> WindDirection.WEST
45 "Westnordwest" -> WindDirection.WESTNORTHWEST
46 "NW", "Nordwest" -> WindDirection.NORTHWEST
47 "Nordnordwest" -> WindDirection.NORTHNORTHWEST
48 else -> WindDirection.NONE