} else if (token.isValue()) { if (currentName.equals("lat")) { point.resetLat(parser.doubleValue()); } else if (currentName.equals("lon")) { point.resetLon(parser.doubleValue()); geoDistance = GeoDistance.fromString(parser.text()); } else if (currentFieldName.endsWith(".lat")) { point.resetLat(parser.doubleValue()); fieldName = currentFieldName.substring(0, currentFieldName.length() - ".lat".length()); } else if (currentFieldName.endsWith(".lon")) {
/** * Set the latitude of the point to calculate distances from. */ public GeoDistanceBuilder lat(double lat) { if (this.point == null) { point = new GeoPoint(); } point.resetLat(lat); return this; }
geoDistance = GeoDistance.fromString(parser.text()); } else if (currentFieldName.endsWith(GeoPointFieldMapper.Names.LAT_SUFFIX)) { point.resetLat(parser.doubleValue()); fieldName = currentFieldName.substring(0, currentFieldName.length() - GeoPointFieldMapper.Names.LAT_SUFFIX.length()); } else if (currentFieldName.endsWith(GeoPointFieldMapper.Names.LON_SUFFIX)) {
} else if (token.isValue()) { if (currentName.equals(GeoPointFieldMapper.Names.LAT)) { point.resetLat(parser.doubleValue()); } else if (currentName.equals(GeoPointFieldMapper.Names.LON)) { point.resetLon(parser.doubleValue()); geoDistance = GeoDistance.fromString(parser.text()); } else if (currentFieldName.endsWith(GeoPointFieldMapper.Names.LAT_SUFFIX)) { point.resetLat(parser.doubleValue()); fieldName = currentFieldName.substring(0, currentFieldName.length() - GeoPointFieldMapper.Names.LAT_SUFFIX.length()); } else if (currentFieldName.endsWith(GeoPointFieldMapper.Names.LON_SUFFIX)) {
} else if (token.isValue()) { if (currentName.equals("lat")) { point.resetLat(parser.doubleValue()); } else if (currentName.equals("lon")) { point.resetLon(parser.doubleValue()); geoDistance = GeoDistance.fromString(parser.text()); } else if (currentFieldName.endsWith(".lat")) { point.resetLat(parser.doubleValue()); fieldName = currentFieldName.substring(0, currentFieldName.length() - ".lat".length()); } else if (currentFieldName.endsWith(".lon")) {
} else if (token.isValue()) { if (currentName.equals("lat")) { point.resetLat(parser.doubleValue()); } else if (currentName.equals("lon")) { point.resetLon(parser.doubleValue()); geoDistance = GeoDistance.fromString(parser.text()); } else if (currentFieldName.endsWith(".lat")) { point.resetLat(parser.doubleValue()); fieldName = currentFieldName.substring(0, currentFieldName.length() - ".lat".length()); } else if (currentFieldName.endsWith(".lon")) {
} else if (token.isValue()) { if (currentName.equals(GeoPointFieldMapper.Names.LAT)) { point.resetLat(parser.doubleValue()); } else if (currentName.equals(GeoPointFieldMapper.Names.LON)) { point.resetLon(parser.doubleValue()); geoDistance = GeoDistance.fromString(parser.text()); } else if (currentFieldName.endsWith(GeoPointFieldMapper.Names.LAT_SUFFIX)) { point.resetLat(parser.doubleValue()); fieldName = currentFieldName.substring(0, currentFieldName.length() - GeoPointFieldMapper.Names.LAT_SUFFIX.length()); } else if (currentFieldName.endsWith(GeoPointFieldMapper.Names.LON_SUFFIX)) {
point = new GeoPoint(); point.resetLat(parser.doubleValue()); } else if (currentFieldName.endsWith(GeoPointFieldMapper.Names.LON_SUFFIX)) { String maybeFieldName = currentFieldName.substring(0,