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
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 Default for GeoLocationPolygon
[src]
impl Default for GeoLocationPolygon
fn default() -> GeoLocationPolygon
[src]
fn default() -> GeoLocationPolygon
Returns the "default value" for a type. Read more
impl Clone for GeoLocationPolygon
[src]
impl Clone for GeoLocationPolygon
fn clone(&self) -> GeoLocationPolygon
[src]
fn clone(&self) -> GeoLocationPolygon
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[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 Debug for GeoLocationPolygon
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for GeoLocationPolygon
[src]
impl Part for GeoLocationPolygon
Auto Trait Implementations
impl Send for GeoLocationPolygon
impl Send for GeoLocationPolygon
impl Sync for GeoLocationPolygon
impl Sync for GeoLocationPolygon