Struct google_spectrum1_explorer::api::GeoLocationPolygon
source · pub struct GeoLocationPolygon {
pub exterior: Option<Vec<GeoLocationPoint>>,
}
Expand description
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§
source§impl Clone for GeoLocationPolygon
impl Clone for GeoLocationPolygon
source§fn clone(&self) -> GeoLocationPolygon
fn clone(&self) -> GeoLocationPolygon
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GeoLocationPolygon
impl Debug for GeoLocationPolygon
source§impl Default for GeoLocationPolygon
impl Default for GeoLocationPolygon
source§fn default() -> GeoLocationPolygon
fn default() -> GeoLocationPolygon
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GeoLocationPolygon
impl<'de> Deserialize<'de> for GeoLocationPolygon
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for GeoLocationPolygon
impl Serialize for GeoLocationPolygon
impl Part for GeoLocationPolygon
Auto Trait Implementations§
impl RefUnwindSafe for GeoLocationPolygon
impl Send for GeoLocationPolygon
impl Sync for GeoLocationPolygon
impl Unpin for GeoLocationPolygon
impl UnwindSafe for GeoLocationPolygon
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more