@Test
	public void choixMode() throws ParseException, OpenTripPlannerException {
		Date date = new Date();
		// toPlace=44.825920698932%2C-0.58469463769264&fromPlace=44.830912280174%2C-0.57263542596218
		Request request = new Request(44.830912280174, -0.57263542596218, 44.825920698932, -0.58469463769264, date);
		boolean bus = true;
		boolean tram = true;
		List<TraverseMode> modes = new ArrayList<TraverseMode>();
		modes.add(TraverseMode.WALK);
		if (bus && tram) {
			modes.add(TraverseMode.TRANSIT);
		} else if (bus) {
			modes.add(TraverseMode.BUSISH);
			modes.add(TraverseMode.BUS);
		} else if (tram) {
			modes.add(TraverseMode.TRAM);
			modes.add(TraverseMode.TRAINISH);
		}
		request.setModes(new TraverseModeSet(modes));
		ClientOpenTripPlanner client = new ClientOpenTripPlanner(
				"http://transports-rennes.ic-s.org/bordeaux-api-webapp");
		Response response = client.getItineraries(request);
		System.out.println(response.getPlan().itineraries.itinerary.size());

	}