I'm writing a fantasy book in a medieval-ish era, and my characters are on a ship. What would that be like? Where would they sleep or eat? How fast is travel?
This depends drastically on where they were from, and what time exactly they were sailing in. Also, the distances being covered.
If you're talking Medieval Era, that covers anything from just after the Fall of Western Rome when ships were comparatively pretty coastal, and the North Sea was considered a very hazardous crossing, to the 15th Century that ended with transatlantic voyages on much larger and more sophisticated vessels. The food, accommodation, weapons, distance and naval tactics were entirely different.
We'll need more information if you're looking to reference a particular real life region or time. Otherwise, r/worldbuilding may be of more help for writing your story.