1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use crate::latlng::LatLng; use serde::{Serialize, Deserialize}; /// Contains information about the stop/station for this part of the trip. #[derive(Clone, Debug, PartialEq, PartialOrd, Serialize, Deserialize)] pub struct TransitStop { /// The name of the transit station/stop. eg. "Union Square". pub name: String, /// The location of the transit station/stop, represented as a `lat` and /// `lng` field. pub location: LatLng, } // struct