utils/dash_utils.py
def convert_coords(coords_in: Dict[str, List[float]]) -> List[List[float]]:
    """Converts coordinates from a dict to a list

    Args:
        coords_in (Dict[str, List[float]]): Dictionary with following elements:
            'lat':
                [south, north]
            'long':
                [west, east]

    Returns:
        List[List[float]]: Coordinates in format [[south, west], [north, east]]
    """
    converted_coord = [
        [coords_in["lat"][0], coords_in["long"][0]],
        [coords_in["lat"][1], coords_in["long"][1]],
    ]
    return converted_coord
Converts coordinates from a dict to a list

    Args:
        coords_in (Dict[str, List[float]]): Dictionary with following elements:
            'lat':
                [south, north]
            'long':
                [west, east]

    Returns:
        List[List[float]]: Coordinates in format [[south, west], [north, east]]
    
Converts coordinates from a dict to a list
Converts coordinates from a dict to a list
def convert_coords(coords_in: Dict[str, List[float]]) -> List[List[float]]:
    converted_coord = [
        [coords_in["lat"][0], coords_in["long"][0]],
        [coords_in["lat"][1], coords_in["long"][1]],
    ]
    return converted_coord
def convert_coords ( coords_in : Dict [ str , List [ float ] ] ) -> List [ List [ float ] ] : converted_coord = [ [ coords_in [ "lat" ] [ 0 ] , coords_in [ "long" ] [ 0 ] ] , [ coords_in [ "lat" ] [ 1 ] , coords_in [ "long" ] [ 1 ] ] , ] return converted_coord
Converts coordinates from a dict to a list
Converts coordinates from a dict to a list
"""Converts coordinates from a dict to a list

    Args:
        coords_in (Dict[str, List[float]]): Dictionary with following elements:
            'lat':
                [south, north]
            'long':
                [west, east]

    Returns:
        List[List[float]]: Coordinates in format [[south, west], [north, east]]
    """
Coordinates in format [[south, west], [north, east]]
Coordinates in format [[ south west ] [ north east ]]
List[List[float]]
coords_in
Dict[str, List[float]]
Dictionary with following elements:
'lat':
[south, north]
'long':
[west, east]
Dictionary with following elements : ' lat ' : [ south north ] ' long ' : [ west east ]