Python 检查坐标点是否位于特定的方框区域

Python 检查坐标点是否位于特定的方框区域,python,maps,coordinate,Python,Maps,Coordinate,我有一个地方的坐标点,例如: point_coord = [-7.7938593,110.3634829] northeast = [5.9052479,141.0194444] southwest = [-11.005261,95.01106190000002] 我还有一个包含两个相关点的区域视口,例如: point_coord = [-7.7938593,110.3634829] northeast = [5.9052479,141.0194444] southwest = [-11.

我有一个地方的坐标点,例如:

point_coord = [-7.7938593,110.3634829]
northeast = [5.9052479,141.0194444]
southwest = [-11.005261,95.01106190000002]
我还有一个包含两个相关点的区域视口,例如:

point_coord = [-7.7938593,110.3634829]
northeast = [5.9052479,141.0194444]
southwest = [-11.005261,95.01106190000002]
如果我举例说明这一点,它将是这样的:

问题是,如何使用Python检查点_坐标是否落下或位于该框区域的某个位置


谢谢

对不起,没有太多的地图和视口经验,但不应该是:

def isInside(point_coord, northeast, southwest):
    return southwest[0]<point_coord[0]<northeast[0] and\
           southwest[1]<point_coord[1]<northeast[1]
我能想到的唯一可能的边缘情况是北极和南极。您可能只需要编写特殊情况代码来处理它们

编辑:一些打字错误和不链接比较