package com.dowse.base.util;

/* loaded from: ds_base_2.0.9_23030112.aar:classes.jar:com/dowse/base/util/GPSUtil.class */
public class GPSUtil {
    public static final int DU = 360000;
    public static final int FEN = 6000;
    public static final int MIAO = 100;

    public static String getShowValue(int value) {
        return getDu(value) + getFen(value) + getMiao(value);
    }

    public static String getDu(int value) {
        int result = 0;
        if (value > 360000) {
            result = value / DU;
        }
        return result + "°";
    }

    public static String getFen(int value) {
        int result = 0;
        int temp = value % DU;
        if (value > 360000) {
            if (temp != 0 && temp > 6000) {
                result = temp / FEN;
            }
        } else {
            result = value / FEN;
        }
        return result + "'";
    }

    public static String getMiao(int value) {
        int result = 0;
        int temp = value % DU;
        if (value > 3600) {
            if (temp != 0) {
                if (temp > 6000) {
                    if (temp % FEN != 0) {
                        result = temp % FEN;
                    }
                } else {
                    result = temp;
                }
            }
        } else if (value % FEN != 0) {
            result = value % FEN;
        }
        return (result / 100) + "''";
    }
}
