Examples of lonValues()


Examples of org.elasticsearch.index.mapper.geo.GeoPointFieldData.lonValues()

                    return false;
                }

                if (fieldData.multiValued()) {
                    double[] lats = fieldData.latValues(doc);
                    double[] lons = fieldData.lonValues(doc);
                    for (int i = 0; i < lats.length; i++) {
                        double d = geoDistance.calculate(lat, lon, lats[i], lons[i], DistanceUnit.MILES);
                        if (d >= inclusiveLowerPoint && d <= inclusiveUpperPoint) {
                            return true;
                        }
View Full Code Here

Examples of org.elasticsearch.index.mapper.geo.GeoPointFieldData.lonValues()

                    return false;
                }

                if (fieldData.multiValued()) {
                    double[] lats = fieldData.latValues(doc);
                    double[] lons = fieldData.lonValues(doc);
                    for (int i = 0; i < lats.length; i++) {
                        if (pointInPolygon(points, lats[i], lons[i])) {
                            return true;
                        }
                    }
View Full Code Here

Examples of org.elasticsearch.index.mapper.geo.GeoPointFieldData.lonValues()

                    return false;
                }

                if (fieldData.multiValued()) {
                    double[] lats = fieldData.latValues(doc);
                    double[] lons = fieldData.lonValues(doc);
                    for (int i = 0; i < lats.length; i++) {
                        double d = geoDistance.calculate(lat, lon, lats[i], lons[i], DistanceUnit.MILES);
                        if (d < distance) {
                            return true;
                        }
View Full Code Here

Examples of org.elasticsearch.index.mapper.geo.GeoPointFieldData.lonValues()

                        return false;
                    }

                    if (fieldData.multiValued()) {
                        double[] lats = fieldData.latValues(doc);
                        double[] lons = fieldData.lonValues(doc);
                        for (int i = 0; i < lats.length; i++) {
                            double lat = lats[i];
                            double lon = lons[i];
                            if (((topLeft.lon <= lon && 180 >= lon) || (-180 <= lon && bottomRight.lon >= lon)) &&
                                    (topLeft.lat >= lat && bottomRight.lat <= lat)) {
View Full Code Here

Examples of org.elasticsearch.index.mapper.geo.GeoPointFieldData.lonValues()

                        return false;
                    }

                    if (fieldData.multiValued()) {
                        double[] lats = fieldData.latValues(doc);
                        double[] lons = fieldData.lonValues(doc);
                        for (int i = 0; i < lats.length; i++) {
                            if (topLeft.lon <= lons[i] && bottomRight.lon >= lons[i]
                                    && topLeft.lat >= lats[i] && bottomRight.lat <= lats[i]) {
                                return true;
                            }
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.