Get one’s bearings

To determine where one is.

When I got my bearings I was able to easily find my way around the department store.