def get_node_coord(g, node):
    """Fetch coordonates of a node using the map

    Args:
        g (JURBEY): The map
        node (int): Node id

    Returns:
        (float, float): Coordinates tuple

    """
    try:
        from_coord = g.nodes[node]['data'].coord
        from_coord_lat = from_coord.lat
        from_coord_lon = from_coord.lon
    except KeyError:
        from_coord_lat = float('nan')
        from_coord_lon = float('nan')
    return from_coord_lat, from_coord_lon