1 package net.pterodactylus.rhynodge.webpages.weather.wettercom
4 * The direction the wind comes from.
6 * @author [David ‘Bombe’ Roden](mailto:bombe@pterodactylus.net)
8 enum class WindDirection(val arrow: String) {
22 fun String.toWindDirection(): WindDirection {
24 "N" -> WindDirection.NORTH
25 "NO" -> WindDirection.NORTHEAST
26 "O" -> WindDirection.EAST
27 "SO" -> WindDirection.SOUTHEAST
28 "S" -> WindDirection.SOUTH
29 "SW" -> WindDirection.SOUTHWEST
30 "W" -> WindDirection.WEST
31 "NW" -> WindDirection.NORTHWEST
32 else -> WindDirection.NONE