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

Examples of org.springframework.data.elasticsearch.core.geo.GeoPoint.split()


          GeoPoint loc = GeoPoint.fromPoint((Point) valArray[0]);
          ((GeoDistanceFilterBuilder) filter).lat(loc.getLat()).lon(loc.getLon()).distance(dist.toString());
        } else {
          String loc = (String) valArray[0];
          if (loc.contains(",")) {
            String c[] = loc.split(",");
            ((GeoDistanceFilterBuilder) filter).lat(Double.parseDouble(c[0])).lon(Double.parseDouble(c[1])).distance(dist.toString());
          } else {
            ((GeoDistanceFilterBuilder) filter).geohash(loc).distance(dist.toString());
          }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.