spring-data-jest/src/main/java/com/github/vanroy/springdata/jest/CriteriaFilterProcessor.java
private void extractDistanceString(Distance distance, StringBuilder sb) {
		// handle Distance object
		sb.append((int) distance.getValue());

		Metrics metric = (Metrics) distance.getMetric();

		switch (metric) {
			case KILOMETERS:
				sb.append("km");
				break;
			case MILES:
				sb.append("mi");
				break;
		}
	}
private void extractDistanceString(Distance distance, StringBuilder sb) {
		// handle Distance object
		sb.append((int) distance.getValue());

		Metrics metric = (Metrics) distance.getMetric();

		switch (metric) {
			case KILOMETERS:
				sb.append("km");
				break;
			case MILES:
				sb.append("mi");
				break;
		}
	}
private void extractDistanceString ( Distance distance , StringBuilder sb ) { // handle Distance object sb . append ( ( int ) distance . getValue ( ) ) ; Metrics metric = ( Metrics ) distance . getMetric ( ) ; switch ( metric ) { case KILOMETERS : sb . append ( "km" ) ; break ; case MILES : sb . append ( "mi" ) ; break ; } }
extract the distance string from a {@link org.springframework.data.geo.Distance} object.

@param distance distance object to extract string from
@param sb StringBuilder to build the distance string
extract the distance string from a { @link org . springframework . data . geo . Distance } object .