Timings added

This commit is contained in:
AngeHerman 2024-03-30 12:47:45 +01:00
parent 98b4d4b322
commit 1e2d4aceb7

View file

@ -6,6 +6,13 @@ import java.text.NumberFormat;
import java.util.*; import java.util.*;
public class CSVStreamSchedulesProvider { public class CSVStreamSchedulesProvider {
private static final HashMap<String, int[]> timings = new HashMap<String, int[]>(){{
put("Bus", new int[]{11, 8, 7});
put("Funicular", new int[]{15, 25, 20});
put("Tram", new int[]{6, 7, 8, 9});
put("Rail", new int[]{10, 11,15,12});
put("Subway", new int[]{4, 2, 6,3,3,4});
}};
private static final NumberFormat MINUTES_SECOND_FORMATTER = NumberFormat private static final NumberFormat MINUTES_SECOND_FORMATTER = NumberFormat
.getInstance(Locale.ENGLISH); .getInstance(Locale.ENGLISH);