--- android/TrainInfoService/src/dk/thoerup/traininfoservice/LocateStations.java 2010/05/05 11:52:27 710 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/LocateStations.java 2010/05/05 20:11:03 711 @@ -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); }