Expand description
Fields of type geo_point accept latitude-longitude pairs.
It can be used:
- to find geo-points within a bounding box , within a certain distance of a central point, or within a polygon or within a geo_shape query.
- to aggregate documents geographically or by distance from a central point.
- to integrate distance into a document’s relevance score.
- to sort documents by distance.
https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html
Variants
Coordinates
Fields
latitude: f32Latitudes measure an angle up from the equator (latitudes to the south are negative).
longitude: f32A longitude is an angle from the prime meridian, measured to the east (longitudes to the west are negative)
Geo-point expressed as an array with the format: [lon, lat]
Geohash(String)
Geo-point expressed as a geohash
Implementations
Trait Implementations
impl StructuralPartialEq for GeoPoint
Auto Trait Implementations
impl RefUnwindSafe for GeoPoint
impl Send for GeoPoint
impl Sync for GeoPoint
impl Unpin for GeoPoint
impl UnwindSafe for GeoPoint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more