Questions & Answers about Od knihovny jdeš rovně až do centra.
Both can mean from the library in English, but they are not used in exactly the same way.
- od knihovny = from the library / from by the library / starting at the library
- z knihovny = out of the library / from inside the library
In directions, Czech often uses od when the library is just the starting point on the map, not necessarily a building you are walking out of. So Od knihovny jdeš... sounds very natural for giving a route.
If you really mean that someone comes out of the building itself, z knihovny would make more sense.
Because od requires the genitive case.
The basic form is:
- knihovna = library
After od, it changes to the genitive singular:
- od knihovny = from the library
This is a very common Czech pattern:
- od školy
- od domu
- od nádraží
So the ending changes because the preposition controls the case.