I guess the notion of neighboring cells is not super well defined at the poles (since all points (longitude, 90) are the same), but I would suggest that a cell which contains the north pole has no north, northwest, or northeast neighbor; likewise for the south pole and south neighbors.
It looks like
neighbours
is incorrect at the poles: it gives the north neighbour of the north pole as the south pole. Here's an example:I guess the notion of neighboring cells is not super well defined at the poles (since all points
(longitude, 90)
are the same), but I would suggest that a cell which contains the north pole has no north, northwest, or northeast neighbor; likewise for the south pole and south neighbors.If this seems good I can open a PR.