package com.amap.api.col; import java.util.Random; /* compiled from: MapServerUrl */ class bg { private static bg b; private String a = "http://tm.amap.com"; private bg() { } public static synchronized bg a() { bg bgVar; synchronized (bg.class) { if (b == null) { b = new bg(); } bgVar = b; } return bgVar; } public String b() { String str; int nextInt = new Random(System.currentTimeMillis()).nextInt(100000) % 4; if (aa.n == 2) { str = String.format("http://wprd0%d.is.autonavi.com", Integer.valueOf(nextInt + 1)); } else { str = String.format("http://webrd0%d.is.autonavi.com", Integer.valueOf(nextInt + 1)); } return str + "/appmaptile?z=%d&x=%d&y=%d&lang=%s&size=1&scale=1&style=7"; } public String c() { return this.a; } public String d() { return "http://grid.amap.com/grid/%d/%d/%d?ds=" + aa.j; } public String e() { return String.format("http://mst0%d.is.autonavi.com", Integer.valueOf((new Random(System.currentTimeMillis()).nextInt(100000) % 4) + 1)); } }