Struct gtfs_server::models::boundingbox::BoundingBox[][src]

pub struct BoundingBox {
    pub p1: Coordinate,
    pub p2: Coordinate,
}

A Bouding Box is defined (as a parameter) as following:
p1_lat,p1_lng,p2_lat,p2_lng where pn_lat is the latitude of the n-th point and pn_lng is the longitude of the n-th point.

For example the string 51.2867602,-0.5103751,51.6918741,0.3340155 defines a bouding box enclosing the London's area

45.818,5.9559,47.8084,10.4921 is the bounding box that encloses the swiss territory.

Fields

Trait Implementations

impl Debug for BoundingBox
[src]

Formats the value using the given formatter. Read more

impl<'r> FromParam<'r> for BoundingBox
[src]

The associated error to be returned when parsing fails.

Parses an instance of Self from a dynamic path parameter string or returns an Error if one cannot be parsed. Read more

Auto Trait Implementations

impl Send for BoundingBox

impl Sync for BoundingBox