Learning to acquire and select useful landmarks for route following