import math


def get_bounding_box(location, radius):
    """
    Based on given location coordinates and radius in kilometers
    returns coordinates of the bounding box.
    """
    equator_len = 111
    current_latitude_km_length = math.cos(location[0] * math.pi / 180) * equator_len

    return {
        "lat_min": location[0] - radius / equator_len,
        "lat_max": location[0] + radius / equator_len,
        "lon_min": location[1] - radius / current_latitude_km_length,
        "lon_max": location[1] + radius / current_latitude_km_length,
    }