Travnik is close to the geographic center of Bosnia and Herzegovina at . The river Lašva flows from west to east through the city. Travnik is in the Lašva valley. This valley connects the Bosna river valley to the Vrbas river valley.