sbb-api 0.1.0

A library to interact with sbb.ch's unofficial API
Documentation
use core::fmt;

pub enum LocationType {
    Address,
    Station
}

impl fmt::Display for LocationType {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match *self {
            LocationType::Address=> {
                write!(f, "a")
            },
            LocationType::Station => {
                write!(f, "s")
            }
        }
    }
}