distances and routes on geographical grids