Geographic information systems

Two neighborhoods are close together on a map, but a river without a bridge separates them. Why might a network route between them be much longer than their straight-line separation?