A right of way is granted through a written agreement defining its location, scope, and duration. This agreement is typically recorded in public records.