Package org.springframework.data.elasticsearch.core.geo

Examples of org.springframework.data.elasticsearch.core.geo.GeoBox


  }

  private void oneParameterBBox(GeoBoundingBoxFilterBuilder filter, Object value) {
    Assert.isTrue(value instanceof GeoBox || value instanceof Box, "single-element of boundedBy filter must be type of GeoBox or Box");

    GeoBox geoBBox;
    if (value instanceof Box) {
      Box sdbox = (Box) value;
      geoBBox = GeoBox.fromBox(sdbox);
    } else {
      geoBBox = (GeoBox) value;
    }

    filter.topLeft(geoBBox.getTopLeft().getLat(), geoBBox.getTopLeft().getLon());
    filter.bottomRight(geoBBox.getBottomRight().getLat(), geoBBox.getBottomRight().getLon());
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.elasticsearch.core.geo.GeoBox

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.