QueryParameter.checkRangeInclusive(maxCarTime, 1, 480);
QueryParameter.checkRangeInclusive(minBikeTime, 0, maxBikeTime);
QueryParameter.checkRangeInclusive(minCarTime, 0, maxCarTime);
QueryParameter.checkRangeInclusive(suboptimalMinutes, 0, 30);
ProfileRequest req = new ProfileRequest();
req.from = from;
req.to = to;
req.fromTime = fromTime.toSeconds();
req.toTime = toTime.toSeconds();
req.walkSpeed = walkSpeed;