pub struct Location {
    pub altitude: Option<f64>,
    pub latitude: f64,
    pub longitude: f64,
    pub relevant_text: Option<String>,
}
Expand description

The geographic coordinates of the transit departure, suitable to be shown on a map. If possible, precise locations are more useful to travelers, such as the specific location of the gate at an airport.

Information about a location.

The geographic coordinates of the transit destination, suitable to be shown on a map.

A brief description of the destination location.

The geographic coordinates of the venue.

Fields

altitude: Option<f64>

Altitude, in meters, of the location.

latitude: f64

Latitude, in degrees, of the location.

longitude: f64

Longitude, in degrees, of the location.

relevant_text: Option<String>

Text displayed on the lock screen when the pass is currently relevant.

Implementations

Create a new Instance

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.