In the book, this is achieved by lighting the candle, thinking of where you want to go. Each step you take brings you closer and closer to your destination as you cross leagues in a single step.
In the movie, you must simply light the candle and think of your destination. The candle's magic will teleport you in a flash of light.