[][src]Struct google_spectrum1_explorer::GeoLocationPolygon

pub struct GeoLocationPolygon {
    pub exterior: Option<Vec<GeoLocationPoint>>,
}

A region is represented using the polygonal shape.

This type is not used in any activity, and only used as part of another schema.

Fields

exterior: Option<Vec<GeoLocationPoint>>

When the geolocation describes a region, the exterior field refers to a list of latitude/longitude points that represent the vertices of a polygon. The first and last points must be the same. Thus, a minimum of four points is required. The following polygon restrictions from RFC5491 apply:

  • A connecting line shall not cross another connecting line of the same polygon.
  • The vertices must be defined in a counterclockwise order.
  • The edges of a polygon are defined by the shortest path between two points in space (not a geodesic curve). Consequently, the length between two adjacent vertices should be restricted to a maximum of 130 km.
  • All vertices are assumed to be at the same altitude.
  • Polygon shapes should be restricted to a maximum of 15 vertices (16 points that include the repeated vertex).

Trait Implementations

impl Part for GeoLocationPolygon[src]

impl Default for GeoLocationPolygon[src]

impl Clone for GeoLocationPolygon[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for GeoLocationPolygon[src]

impl Serialize for GeoLocationPolygon[src]

impl<'de> Deserialize<'de> for GeoLocationPolygon[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]