Flyover Country

Amidst a discussion about the laws of inheritance, the Gemara in Yevamos (37b) introduces the following scenario:
There is a field that is surrounded by other fields. The farmer had a path through other fields by which he accessed his field. Everything worked out just fine until he traveled abroad for an extended vacation. Upon his return, he discovered to his dismay that his path no longer existed. Vegetation extended in every direction. Further complicating matters is the fact that the farmer himself is unsure of which direction the path was in. Did he access his field from the north, south, east, or west?
The halacha is that if one person owns all the adjacent fields, the farmer can demand that he supply him with a path to access his field. The farmer definitely had rights to a path somewhere in these fields. The adjacent owner definitely had this path on his properties. So he has no choice but to provide a path. However, the path that the adjacent owner provides can be the one that is most beneficial to himself. Typically, this means that the path he chooses will be the one that will take the shortest route through his property, though it may not be optimal for the farmer – for example, if it is usually muddy.