pub struct Geo<S = Root> { /* private fields */ }Expand description
A geo_point field — distance, bounding-box, and polygon queries, plus
sort-by-distance.
Implementations§
Source§impl<S> Geo<S>
impl<S> Geo<S>
pub fn at(path: impl Into<String>) -> Self
Sourcepub fn within(&self, distance: impl Into<String>, center: GeoPoint) -> Query<S>
pub fn within(&self, distance: impl Into<String>, center: GeoPoint) -> Query<S>
Points within distance (e.g. "12km", "5mi") of center.
Sourcepub fn in_bounding_box(
&self,
top_left: GeoPoint,
bottom_right: GeoPoint,
) -> Query<S>
pub fn in_bounding_box( &self, top_left: GeoPoint, bottom_right: GeoPoint, ) -> Query<S>
Points inside the axis-aligned box with the given corners.
Sourcepub fn in_polygon(&self, points: impl IntoIterator<Item = GeoPoint>) -> Query<S>
pub fn in_polygon(&self, points: impl IntoIterator<Item = GeoPoint>) -> Query<S>
Points inside the polygon described by points (three or more vertices).
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Geo<S>
impl<S> RefUnwindSafe for Geo<S>
impl<S> Send for Geo<S>
impl<S> Sync for Geo<S>
impl<S> Unpin for Geo<S>
impl<S> UnsafeUnpin for Geo<S>
impl<S> UnwindSafe for Geo<S>
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