pub struct GTFSRealtimeShape {
pub shape_id: Option<String>,
pub encoded_polyline: Option<String>,
}Expand description
Describes the physical path that a vehicle takes when it’s not part of the (CSV) GTFS, such as for a detour. Shapes belong to Trips, and consist of a sequence of shape points. Tracing the points in order provides the path of the vehicle. Shapes do not need to intercept the location of Stops exactly, but all Stops on a trip should lie within a small distance of the shape for that trip, i.e. close to straight line segments connecting the shape points NOTE: This message is still experimental, and subject to change. It may be formally adopted in the future
Fields§
§shape_id: Option<String>Identifier of the shape. Must be different than any shape_id defined in the (CSV) GTFS. This field is required as per reference.md, but needs to be specified here optional because “Required is Forever” See https://developers.google.com/protocol-buffers/docs/proto#specifying_field_rules NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
encoded_polyline: Option<String>Encoded polyline representation of the shape. This polyline must contain at least two points. For more information about encoded polylines, see https://developers.google.com/maps/documentation/utilities/polylinealgorithm This field is required as per reference.md, but needs to be specified here optional because “Required is Forever” See https://developers.google.com/protocol-buffers/docs/proto#specifying_field_rules NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
Trait Implementations§
Source§impl Clone for GTFSRealtimeShape
impl Clone for GTFSRealtimeShape
Source§fn clone(&self) -> GTFSRealtimeShape
fn clone(&self) -> GTFSRealtimeShape
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GTFSRealtimeShape
impl Debug for GTFSRealtimeShape
Source§impl Default for GTFSRealtimeShape
impl Default for GTFSRealtimeShape
Source§fn default() -> GTFSRealtimeShape
fn default() -> GTFSRealtimeShape
Source§impl PartialEq for GTFSRealtimeShape
impl PartialEq for GTFSRealtimeShape
Source§impl ProtoRead for GTFSRealtimeShape
Read in the contents of the GTFSRealtimeShape
impl ProtoRead for GTFSRealtimeShape
Read in the contents of the GTFSRealtimeShape
impl StructuralPartialEq for GTFSRealtimeShape
Auto Trait Implementations§
impl Freeze for GTFSRealtimeShape
impl RefUnwindSafe for GTFSRealtimeShape
impl Send for GTFSRealtimeShape
impl Sync for GTFSRealtimeShape
impl Unpin for GTFSRealtimeShape
impl UnwindSafe for GTFSRealtimeShape
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().