Enum elasticsearch_dsl::search::queries::params::GeoBoundingBox
source · [−]pub enum GeoBoundingBox {
MainDiagonal {
top_left: GeoLocation,
bottom_right: GeoLocation,
},
SubDiagonal {
top_right: GeoLocation,
bottom_left: GeoLocation,
},
WellKnownText {
wkt: String,
},
Vertices {
top: f32,
left: f32,
bottom: f32,
right: f32,
},
}Expand description
Different representations of geo bounding box
Variants
MainDiagonal
Fields
top_left: GeoLocationThe coordinates of the upper left vertex
bottom_right: GeoLocationThe coordinates of the lower right vertex
MainDiagonal vertices of geo bounding box
SubDiagonal
Fields
top_right: GeoLocationThe coordinates of the upper right vertex
bottom_left: GeoLocationThe coordinates of the lower left vertex
SubDiagonal vertices of geo bounding box
WellKnownText
Fields
wkt: Stringe.g. BBOX (-74.1, -71.12, 40.73, 40.01)
Well-Known Text (WKT).
Vertices
Fields
top: f32Set top separately
left: f32Set left separately
bottom: f32Set bottom separately
right: f32Set right separately
The vertices of the bounding box can either be set by top_left and bottom_right or by
top_right and bottom_left parameters. More over the names topLeft, bottomRight, topRight
and bottomLeft are supported. Instead of setting the values pairwise, one can use the simple
names top, left, bottom and right to set the values separately.
Trait Implementations
sourceimpl Clone for GeoBoundingBox
impl Clone for GeoBoundingBox
sourcefn clone(&self) -> GeoBoundingBox
fn clone(&self) -> GeoBoundingBox
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read more