[−][src]Module elastic::types::geo::point
Implementation of the Elasticsearch geo_point
type.
Geo points are an Elasticsearch specific geospatial type with an x
(lon
) and y
(lat
)
component.
GeoPoint
is a good choice for storing and analysing geospatial points where geojson
compatibility isn't needed.
Examples
For defining your own geo point mapping, see mapping details.
Map with a default geo_point
:
struct MyType { pub field: GeoPoint<DefaultGeoPointMapping> }
Map with a custom geo_point
:
struct MyType { pub field: GeoPoint<MyGeoPointMapping> }
Map a custom type as a geo_point
field:
#[derive(Serialize)] struct MyGeoPointField(f32, f32); impl GeoPointFieldType<DefaultGeoPointMapping<GeoPointObject>> for MyGeoPointField {}
Links
Modules
mapping | Mapping for the Elasticsearch |
prelude | Includes all types for the |