package com.google.maps.android.ktx.utils.heatmaps;

import com.google.android.gms.maps.model.LatLng;
import com.google.maps.android.heatmaps.Gradient;
import com.google.maps.android.heatmaps.HeatmapTileProvider;
import com.google.maps.android.heatmaps.WeightedLatLng;
import java.util.Collection;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;

/* JADX INFO: compiled from: Heatmap.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000.\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u001a?\u0010\u0000\u001a\u00020\u00012\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u00062\b\b\u0002\u0010\u0007\u001a\u00020\b2\b\b\u0002\u0010\t\u001a\u00020\n2\b\b\u0002\u0010\u000b\u001a\u00020\nH\u0086\b\u001a?\u0010\f\u001a\u00020\u00012\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\r0\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u00062\b\b\u0002\u0010\u0007\u001a\u00020\b2\b\b\u0002\u0010\t\u001a\u00020\n2\b\b\u0002\u0010\u000b\u001a\u00020\nH\u0086\b\u001a\u0017\u0010\u000e\u001a\u00020\r*\u00020\u00042\b\b\u0002\u0010\u000f\u001a\u00020\nH\u0086\b¨\u0006\u0010"}, d2 = {"heatmapTileProviderWithData", "Lcom/google/maps/android/heatmaps/HeatmapTileProvider;", "latLngs", "", "Lcom/google/android/gms/maps/model/LatLng;", "radius", "", "gradient", "Lcom/google/maps/android/heatmaps/Gradient;", "opacity", "", "maxIntensity", "heatmapTileProviderWithWeightedData", "Lcom/google/maps/android/heatmaps/WeightedLatLng;", "toWeightedLatLng", "intensity", "maps-utils-ktx_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
public final class HeatmapKt {
    public static /* synthetic */ WeightedLatLng toWeightedLatLng$default(LatLng latLng, double d, int i, Object obj) {
        if ((i & 1) != 0) {
            d = 1.0d;
        }
        Intrinsics.checkNotNullParameter(latLng, "<this>");
        return new WeightedLatLng(latLng, d);
    }

    public static final WeightedLatLng toWeightedLatLng(LatLng latLng, double d) {
        Intrinsics.checkNotNullParameter(latLng, "<this>");
        return new WeightedLatLng(latLng, d);
    }

    public static /* synthetic */ HeatmapTileProvider heatmapTileProviderWithData$default(Collection latLngs, int i, Gradient gradient, double d, double d2, int i2, Object obj) {
        if ((i2 & 2) != 0) {
            i = 20;
        }
        if ((i2 & 4) != 0) {
            gradient = HeatmapTileProvider.DEFAULT_GRADIENT;
            Intrinsics.checkNotNullExpressionValue(gradient, "DEFAULT_GRADIENT");
        }
        if ((i2 & 8) != 0) {
            d = 0.7d;
        }
        if ((i2 & 16) != 0) {
            d2 = 0.0d;
        }
        Intrinsics.checkNotNullParameter(latLngs, "latLngs");
        Intrinsics.checkNotNullParameter(gradient, "gradient");
        HeatmapTileProvider heatmapTileProviderBuild = new HeatmapTileProvider.Builder().data(latLngs).radius(i).gradient(gradient).opacity(d).maxIntensity(d2).build();
        Intrinsics.checkNotNullExpressionValue(heatmapTileProviderBuild, "Builder()\n        .data(…tensity)\n        .build()");
        return heatmapTileProviderBuild;
    }

    public static final HeatmapTileProvider heatmapTileProviderWithData(Collection<LatLng> latLngs, int i, Gradient gradient, double d, double d2) {
        Intrinsics.checkNotNullParameter(latLngs, "latLngs");
        Intrinsics.checkNotNullParameter(gradient, "gradient");
        HeatmapTileProvider heatmapTileProviderBuild = new HeatmapTileProvider.Builder().data(latLngs).radius(i).gradient(gradient).opacity(d).maxIntensity(d2).build();
        Intrinsics.checkNotNullExpressionValue(heatmapTileProviderBuild, "Builder()\n        .data(…tensity)\n        .build()");
        return heatmapTileProviderBuild;
    }

    public static /* synthetic */ HeatmapTileProvider heatmapTileProviderWithWeightedData$default(Collection latLngs, int i, Gradient gradient, double d, double d2, int i2, Object obj) {
        if ((i2 & 2) != 0) {
            i = 20;
        }
        if ((i2 & 4) != 0) {
            gradient = HeatmapTileProvider.DEFAULT_GRADIENT;
            Intrinsics.checkNotNullExpressionValue(gradient, "DEFAULT_GRADIENT");
        }
        if ((i2 & 8) != 0) {
            d = 0.7d;
        }
        if ((i2 & 16) != 0) {
            d2 = 0.0d;
        }
        Intrinsics.checkNotNullParameter(latLngs, "latLngs");
        Intrinsics.checkNotNullParameter(gradient, "gradient");
        HeatmapTileProvider heatmapTileProviderBuild = new HeatmapTileProvider.Builder().weightedData(latLngs).radius(i).gradient(gradient).opacity(d).maxIntensity(d2).build();
        Intrinsics.checkNotNullExpressionValue(heatmapTileProviderBuild, "Builder()\n        .weigh…tensity)\n        .build()");
        return heatmapTileProviderBuild;
    }

    public static final HeatmapTileProvider heatmapTileProviderWithWeightedData(Collection<? extends WeightedLatLng> latLngs, int i, Gradient gradient, double d, double d2) {
        Intrinsics.checkNotNullParameter(latLngs, "latLngs");
        Intrinsics.checkNotNullParameter(gradient, "gradient");
        HeatmapTileProvider heatmapTileProviderBuild = new HeatmapTileProvider.Builder().weightedData(latLngs).radius(i).gradient(gradient).opacity(d).maxIntensity(d2).build();
        Intrinsics.checkNotNullExpressionValue(heatmapTileProviderBuild, "Builder()\n        .weigh…tensity)\n        .build()");
        return heatmapTileProviderBuild;
    }
}