def get_intersection(p_d, p_g):
    """Get two polygons' intersection area

    Args:
        p_d (Polygon): Polygon object
        p_g (Polygon): Polygon object

    Returns:
        float: the intersection area between pD and pG

    """
    p_inter = p_d & p_g
    if len(p_inter) == 0:
        return 0
    return p_inter.area()