engine/process.py
def distance(self, adjust):
        """Return the distance between the
           two farthest points of an adjusted area"""
        cursor.execute(
            f"select ST_Distance('SRID=4326;POINT({adjust['point1_long']} {adjust['point1_lat']})'::geography,"
            f"'SRID=4326;POINT({adjust['point2_long']} {adjust['point2_lat']})'::geography)")
        return int(cursor.fetchall()[0][0])
Return the distance between the
           two farthest points of an adjusted area
Return the distance between the
two farthest points of an adjusted area
Return the distance between the two farthest points of an adjusted area
def distance(self, adjust):
        cursor.execute(
            f"select ST_Distance('SRID=4326;POINT({adjust['point1_long']} {adjust['point1_lat']})'::geography,"
            f"'SRID=4326;POINT({adjust['point2_long']} {adjust['point2_lat']})'::geography)")
        return int(cursor.fetchall()[0][0])
def distance ( self , adjust ) : cursor . execute ( f"select ST_Distance('SRID=4326;POINT({adjust['point1_long']} {adjust['point1_lat']})'::geography," f"'SRID=4326;POINT({adjust['point2_long']} {adjust['point2_lat']})'::geography)" ) return int ( cursor . fetchall ( ) [ 0 ] [ 0 ] )
Return the distance between the
two farthest points of an adjusted area
Return the distance between the two farthest points of an adjusted area
"""Return the distance between the
           two farthest points of an adjusted area"""
self
adjust