--- android/TrainInfoService/src/dk/thoerup/traininfoservice/LocateStations.java 2010/02/08 19:12:15 588 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/LocateStations.java 2010/06/16 08:20:01 859 @@ -41,15 +41,20 @@ protected List getStations(HttpServletRequest req) throws SQLException { List stations = null; if (req.getParameter("latitude") != null && req.getParameter("latitude") != null) { + + Statistics.getInstance().incrementStationLookupsLocation(); + double latitude = Double.parseDouble( req.getParameter("latitude") ); double longitude = Double.parseDouble( req.getParameter("longitude") ); stations = stationDao.getByLocation(latitude, longitude); } else if (req.getParameter("name") != null) { + Statistics.getInstance().incrementStationLookupsName(); String name = req.getParameter("name").trim(); stations = stationDao.getByName(name); } else if (req.getParameter("list") != null) { + Statistics.getInstance().incrementStationLookupsFavorites(); String list = transformToIntList( req.getParameter("list")); stations = stationDao.getByList(list); } @@ -61,7 +66,7 @@ StringBuffer buff = new StringBuffer(); - buff.append("\n"); + //buff.append("\n"); buff.append("\n");