Route: add direction field.

This PR is a proposal for issue #492.