}
String policeCarId = params.get(0);
StringBuilder resultString = new StringBuilder();
PoliceCar pcar = ObjectStore.getInstance().getPoliceCar(policeCarId);
//terjunk vissza errorral, hogyha nem talaljuk az autot
if(pcar == null){
return MessageBox.get().getMessage(Messages.NotFound);
}
//osszepakoljuk az eredmenyt
String routeId = ObjectStore.getInstance().getRouteKey(pcar.getRoute());
String crossId = ObjectStore.getInstance().getCrossKey(pcar.getCross());
resultString.append("____PoliceCar: " + policeCarId + "____\r\n");
resultString.append("Aktualis sebesseg: " + pcar.getCurrentSpeed() + "\r\n");
resultString.append("Eredeti sebesseg: " + pcar.getSpeed() + "\r\n");
resultString.append("Pozicioja az uton: " + pcar.getPosition() + "\r\n");
resultString.append("Az ut id-je amin van: " + routeId + "\r\n");
resultString.append("Az keresztezodes id-je ami fele hala: " + crossId + "\r\n");
return resultString.toString();
}