Struct google_spectrum1_explorer::GeoLocationPolygon [] [src]

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

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 Debug for GeoLocationPolygon
[src]

Formats the value using the given formatter.

impl Clone for GeoLocationPolygon
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for GeoLocationPolygon
[src]

Returns the "default value" for a type. Read more

impl Part for GeoLocationPolygon
[src]