private void loadSegments() {
		File file = null;
		for (int i = 0; i < listOfFiles.length; i++) {
			if (listOfFiles[i].getName().equals(
					"roadSeg-roadID-length-nodeID-nodeID-coords.tab")) {
				file = listOfFiles[i];
				break;
			}
		}

		try {
			Scanner sc = new Scanner(file);
			sc.nextLine();
			while (sc.hasNextLine()) {
				int roadid = sc.nextInt();
				double length = sc.nextDouble();
				int inter1id = sc.nextInt();
				int inter2id = sc.nextInt();
				ArrayList<Location> loc = new ArrayList<Location>();
				String line = sc.nextLine();
				String[] values = line.split("\\t");
				for (int i = 1; i < values.length; i += 2) {
					double lat = Double.parseDouble(values[i]);
					double lon = Double.parseDouble(values[i + 1]);
					loc.add(Location.newFromLatLon(lat, lon));
				}
				Intersection int1 = null;
				Intersection int2 = null;
				for (Intersection i : intersections) {
					if (i.getID() == inter1id) {
						int1 = i;
					} else if (i.getID() == inter2id) {
						int2 = i;
					}
				}
				segments.add(new Segment(roadid, length, int1, int2, loc));

			}
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	}