private List<Map<String,Object>> prepareResultsforDisplay(Collection<ScoredResult> scoredResults){
  ArrayList<Map<String,Object>> output=new ArrayList<Map<String,Object>>(scoredResults.size());
  for (  ScoredResult result : scoredResults) {
    Map<String,Object> resultMap=new HashMap<String,Object>();
    if (result.track != null) {
      prepareTrackForDisplay(result.track,resultMap);
    }
 else {
      prepareMarkerForDisplay(result.waypoint,resultMap);
    }
    output.add(resultMap);
  }
  return output;
}

private List < Map < String , Object > > prepareResultsforDisplay ( Collection < ScoredResult > scoredResults ) { ArrayList < Map < String , Object > > output = new ArrayList < Map < String , Object > > ( scoredResults . size ( ) ) ; for ( ScoredResult result : scoredResults ) { Map < String , Object > resultMap = new HashMap < String , Object > ( ) ; if ( result . track != null ) { prepareTrackForDisplay ( result . track , resultMap ) ; } else { prepareMarkerForDisplay ( result . waypoint , resultMap ) ; } output . add ( resultMap ) ; } return output ; }
prepares the result for display .
