Module elastic_types::geo::shape [] [src]

Implementation of the Elasticsearch geo_shape type.

Geo shape is a wrapper for storing geojson structures in Elasticsearch.

Examples

For defining your own geo shape mapping, see mapping details.

Map with a default geo_shape:

struct MyType {
    pub field: GeoShape<DefaultGeoShapeMapping>
}

Map with a custom geo_shape:

struct MyType {
    pub field: GeoShape<MyGeoShapeMapping>
}

Map a custom type as a geo_shape field:

#[derive(Serialize)]
struct MyGeoShapeField(String);

impl GeoShapeFieldType<DefaultGeoShapeMapping> for MyGeoShapeField {}

Links

Modules

mapping

Mapping for Elasticsearch geo_shape types.

prelude

Includes all types for the geo_shape types.

Structs

GeoShape

Geo shape type with a given mapping.