• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Weather app


Commit MetaInfo

Revision5ea63b8cb98001ddb1794c04fc71e5e44c51d4a7 (tree)
Time2018-08-01 00:13:54
AuthorHMML <hmml3939@gmai...>
CommiterHMML

Log Message

Drop using Livedoor Weather API.

Change Summary

Incremental Difference

--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -3,7 +3,7 @@
33 <component name="GradleSettings">
44 <option name="linkedExternalProjectsSettings">
55 <GradleProjectSettings>
6- <option name="distributionType" value="LOCAL" />
6+ <option name="distributionType" value="DEFAULT_WRAPPED" />
77 <option name="externalProjectPath" value="$PROJECT_DIR$" />
88 <option name="gradleHome" value="$APPLICATION_HOME_DIR$/gradle/gradle-2.14.1" />
99 <option name="modules">
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -7,8 +7,8 @@ android {
77 applicationId "cloud.hmml.mmw"
88 minSdkVersion 17
99 targetSdkVersion 27
10- versionCode 6
11- versionName '0.4.2'
10+ versionCode 7
11+ versionName '0.4.3'
1212 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1313
1414 }
--- a/app/src/main/java/cloud/hmml/mmw/ConfigManager.java
+++ b/app/src/main/java/cloud/hmml/mmw/ConfigManager.java
@@ -53,7 +53,6 @@ public class ConfigManager implements GoogleApiClient.ConnectionCallbacks, Googl
5353
5454 static final int REQUEST_PERMISSION_OK = 200;
5555 static final int LOCATION_WAIT_MS = 2000;
56- static final String LOCATION_NS_Livedoor = "ld";
5756 static final String LOCATION_NS_JMA = "jma";
5857 static final String LOCATION_NS_OpenWeatherMap = "owm";
5958 long location_requested_at = 0;
@@ -573,13 +572,6 @@ public class ConfigManager implements GoogleApiClient.ConnectionCallbacks, Googl
573572 saveLocation(LOCATION_NS_JMA, loc_id, JmaAreaData.getLabelById(loc_id));
574573
575574 if (loc_id == null) {
576- loc_id = LivedoorArea.findIdByLocation(lat, lon);
577-
578- if (loc_id != null)
579- saveLocation(LOCATION_NS_Livedoor, loc_id, LivedoorAreaData.getLabelById(loc_id));
580- }
581-
582- if (loc_id == null) {
583575 Log.w("cmgr", "Connot find area ID!");
584576 return;
585577 }
@@ -652,14 +644,9 @@ public class ConfigManager implements GoogleApiClient.ConnectionCallbacks, Googl
652644 public void updateWeatherOnly() {
653645 String ns = loadLocationNS();
654646
655- if (ns != null && ns.equals(LOCATION_NS_Livedoor)) {
656- (new ForecastFetcherLivedoor(this.getContext(), loadLocationId())).save(this);
657- } else {
658- if (ns != null && ns.equals(LOCATION_NS_JMA)) {
659- if (!(new ForecastFetcher(this.getContext(), ns, loadLocationId())).save(this)) {
660- Log.e("cmgr", "Failed to get JMA forecat! Failing back to Livedoor...");
661- (new ForecastFetcherLivedoor(this.getContext(), loadLocationId())).save(this);
662- }
647+ if (ns != null && ns.equals(LOCATION_NS_JMA)) {
648+ if (!(new ForecastFetcher(this.getContext(), ns, loadLocationId())).save(this)) {
649+ Log.e("cmgr", "Failed to get JMA forecat!");
663650 }
664651 }
665652 }
--- a/app/src/main/java/cloud/hmml/mmw/ForecastFetcherLivedoor.java
+++ /dev/null
@@ -1,114 +0,0 @@
1-package cloud.hmml.mmw;
2-
3-import android.content.Context;
4-import android.util.Log;
5-
6-import com.google.gson.JsonElement;
7-import com.google.gson.JsonObject;
8-import com.koushikdutta.ion.Ion;
9-
10-import java.text.ParseException;
11-import java.text.SimpleDateFormat;
12-import java.util.Calendar;
13-import java.util.Date;
14-import java.util.concurrent.ExecutionException;
15-
16-public class ForecastFetcherLivedoor {
17- final public static String BASE_URL = "http://weather.livedoor.com/forecast/webservice/json/v1?city=";
18- public String areaId;
19- public Context context;
20-
21- public ForecastFetcherLivedoor(Context context, String areaId) {
22- this.areaId = areaId;
23- this.context = context;
24- }
25-
26- public boolean save(ConfigManager config) {
27- JsonObject json = getJson();
28- if (json == null) return false;
29-
30- SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssz");
31- Date reportedAt = null;
32- Calendar reportedAtCal = null;
33- try {
34- reportedAt = df.parse(json.getAsJsonObject("description").getAsJsonPrimitive("publicTime").getAsString());
35- config.saveReportedAt(reportedAt);
36- } catch (ParseException e) {
37- Log.e("livedoor-forecast", "Failed to parse publictime!");
38- e.printStackTrace();
39- } catch (NullPointerException e) {
40- Log.e("livedoor-forecast", "Failed to get publictime! (null)");
41- // ignore!
42- }
43-
44- int index = 1;
45- for (JsonElement j: json.getAsJsonArray("forecasts")) {
46- JsonObject day = j.getAsJsonObject();
47-
48- String label = day.getAsJsonPrimitive("telop").getAsString();
49- StringBuffer ident = new StringBuffer();
50- for (String part: label.split("のち|後|時々|ときどき", 2)) {
51- if (part.equals("はれ") || part.equals("晴れ") || part.equals("晴")) {
52- if (reportedAt != null && reportedAt.getHours() > 16 && index == 1) {
53- ident.append(Theme.W_CLEAR_N);
54- } else {
55- ident.append(Theme.W_CLEAR_D);
56- }
57- } else if (part.equals("雨") || part.equals("あめ")) {
58- ident.append(Theme.W_RAIN);
59- } else if (part.equals("雪") || part.equals("ゆき")) {
60- ident.append(Theme.W_SNOW);
61- } else if (part.equals("曇") || part.equals("曇り") || part.equals("くもり")) {
62- ident.append(Theme.W_CLOUD);
63- }
64- }
65-
66- Integer temp_max = null;
67- Integer temp_min = null;
68- try {
69- JsonObject temp = day.getAsJsonObject("temperature");
70- try {
71- JsonObject max = temp.getAsJsonObject("max");
72- temp_max = max.getAsJsonPrimitive("celsius").getAsInt();
73- } catch (ClassCastException e) {
74- // ignroe
75- }
76- try {
77- JsonObject min = temp.getAsJsonObject("min");
78- temp_min = min.getAsJsonPrimitive("celsius").getAsInt();
79- } catch (ClassCastException e) {
80- // ignore
81- }
82- } catch (ClassCastException e) {
83- // ignore
84- }
85-
86- config.saveWeather(index, ident.toString(), label, temp_min, temp_max, null);
87-
88- index++;
89- if (index > 2) break;
90- }
91-
92- config.saveUpdatedAt();
93- Log.d("livedoor-fetcher", "Forecast has been fetched successfully.");
94- return true;
95- }
96-
97- private JsonObject getJson() {
98- try {
99- return Ion.with(this.context)
100- .load(BASE_URL + areaId)
101- .setHeader("X-Requested-With", "Android cloud.hmml.mmw")
102- .asJsonObject().get();
103- } catch (InterruptedException e) {
104- Log.e("livedoor-fetcher", "Exception in fetching json: " + e.getMessage());
105- e.printStackTrace();
106- return null;
107- } catch (ExecutionException e) {
108- Log.e("livedoor-fetcher", "Exception in fetching json: " + e.getMessage());
109- e.printStackTrace();
110- return null;
111- }
112- }
113-
114-}
--- a/app/src/main/java/cloud/hmml/mmw/LivedoorArea.java
+++ /dev/null
@@ -1,18 +0,0 @@
1-package cloud.hmml.mmw;
2-
3-public class LivedoorArea {
4- static String findIdByLocation(double lat, double lng) {
5- int i;
6- String id = null;
7- double min_dist = 40000; // Limit to 200km
8- double c_dist;
9- for (i = 0; i < LivedoorAreaData.COUNT; i++) {
10- c_dist = Math.pow((LivedoorAreaData.LATS[i]- lat) / 0.0111, 2) + Math.pow((LivedoorAreaData.LNGS[i] - lng) / 0.0091, 2);
11- if (c_dist < min_dist) {
12- min_dist = c_dist;
13- id = LivedoorAreaData.IDS[i];
14- }
15- }
16- return id;
17- }
18-}
--- a/app/src/main/java/cloud/hmml/mmw/LivedoorAreaData.java
+++ /dev/null
@@ -1,2190 +0,0 @@
1-/*
2-
3- [WARNING]
4- This file has been generated by ERB.
5- Do NOT edit directly!
6- [/WARNING]
7-
8- */
9-package cloud.hmml.mmw;
10-
11-public class LivedoorAreaData {
12- public static final int COUNT = 142;
13- public static final String[] IDS = {"011000", "012010", "012020", "013010", "013020", "013030", "014010", "014020", "014030", "015010", "015020", "016010", "016020", "016030", "017010", "017020", "020010", "020020", "020030", "030010", "030020", "030030", "040010", "040020", "050010", "050020", "060010", "060020", "060030", "060040", "070010", "070020", "070030", "080010", "080020", "090010", "090020", "100010", "100020", "110010", "110020", "110030", "120010", "120020", "120030", "130010", "130020", "130030", "130040", "140010", "140020", "150010", "150020", "150030", "150040", "160010", "160020", "170010", "170020", "180010", "180020", "190010", "190020", "200010", "200020", "200030", "210010", "210020", "220010", "220020", "220030", "220040", "230010", "230020", "240010", "240020", "250010", "250020", "260010", "260020", "270000", "280010", "280020", "290010", "290020", "300010", "300020", "310010", "310020", "320010", "320020", "320030", "330010", "330020", "340010", "340020", "350010", "350020", "350030", "350040", "360010", "360020", "370000", "380010", "380020", "380030", "390010", "390020", "390030", "400010", "400020", "400030", "400040", "410010", "410020", "420010", "420020", "420030", "420040", "430010", "430020", "430030", "430040", "440010", "440020", "440030", "440040", "450010", "450020", "450030", "450040", "460010", "460020", "460030", "460040", "471010", "471020", "471030", "472000", "473000", "474010", "474020"};
14- public static final double[] LATS = {45.4156641, 43.7706355, 43.9409868, 44.0206319, 43.8040314, 44.3564842, 43.3300759, 42.9848542, 42.9238989, 42.3152306, 42.1685159, 43.0620958, 43.1962055, 42.9018294, 41.7687933, 41.8691558, 40.822072, 41.2927457, 40.5122839, 39.702053, 39.6414202, 39.0819011, 38.268215, 38.0024779, 39.7199218, 39.3137816, 38.2554388, 37.9222401, 38.9147858, 38.7650154, 37.7608337, 36.9490884, 37.4947611, 36.3665027, 36.0782972, 36.5551124, 36.871484, 36.3894816, 36.6786996, 35.8617292, 36.1473097, 35.9920551, 35.6072668, 35.7346813, 34.9965057, 35.7090259, 34.7500396, 33.1127398, 27.0750533, 35.4437078, 35.2645639, 37.9161924, 37.4462652, 37.1153895, 38.0183525, 36.6959518, 36.78994, 36.56132540000001, 37.3905901, 36.0640669, 35.6452443, 35.66228, 35.4973137, 36.6485829, 36.2380381, 35.5149777, 35.4232984, 36.1461236, 34.975562, 35.0484388, 35.11840249999999, 34.7108344, 35.1814464, 34.7691995, 34.718596, 34.0707989, 35.0178929, 35.274461, 35.0212466, 35.4747971, 34.6937378, 34.690083, 35.5445754, 34.6850869, 34.043805, 34.2305113, 33.4479784, 35.5011326, 35.4280717, 35.4680595, 34.8993025, 35.4343758, 34.6551456, 35.0691155, 34.3852029, 34.8577316, 33.9578307, 34.178496, 33.9638333, 34.4081155, 34.0702703, 33.728915, 34.3427879, 33.8391574, 33.96028950000001, 33.2233404, 33.5595867, 33.2451032, 32.78299459999999, 33.5903547, 33.8622255, 33.6459075, 33.3192865, 33.263482, 33.2645856, 32.7502856, 33.1799153, 34.202646, 32.6963741, 32.8031004, 32.9434447, 32.1944694, 32.2100405, 33.2395578, 33.5982211, 33.3213327, 32.959806, 31.9076736, 32.5822723, 31.7195903, 32.71169, 31.5965535, 31.3782921, 30.609558, 28.377276, 26.2123124, 26.5915465, 26.3503959, 25.8286844, 24.80549, 24.4064027, 24.4679685};
15- public static final double[] LNGS = {141.6730822, 142.364819, 141.6370119, 144.2733983, 143.8958758, 143.3545032, 145.5827903, 144.3813556, 143.1961031, 140.9737991, 142.7681204, 141.3543763, 141.7759331, 140.7586977, 140.7288103, 140.12746, 140.7473647, 141.1834755, 141.4883986, 141.1544838, 141.9571395, 141.70853, 140.8693558, 140.6198605, 140.1035697, 140.5666488, 140.3396017, 140.1167811, 139.8365708, 140.3016084, 140.4747282, 140.9055861, 139.9298096, 140.4709965, 140.2043331, 139.8828072, 140.0174187, 139.0634281, 138.9990639, 139.6454822, 139.3886446, 139.0848169, 140.1062907, 140.8266406, 139.8699653, 139.7319925, 139.3555791, 139.7890648, 142.2116025, 139.6380256, 139.1521538, 139.0364126, 138.8512772, 138.242142, 138.368082, 137.2136768, 137.0569881, 136.6562051, 136.8991957, 136.2194938, 136.0554408, 138.5682015, 138.7550838, 138.1947709, 137.9720341, 137.8214466, 136.7606537, 137.2521729, 138.3827596, 139.0915361, 138.9185126, 137.7261258, 136.906398, 137.3914662, 136.5056975, 136.1909953, 135.8546074, 136.2596226, 135.7555968, 135.3859918, 135.5021651, 135.1955112, 134.8201814, 135.8050002, 135.7817794, 135.1708083, 135.7614191, 134.2350914, 133.3309447, 133.048375, 132.0797833, 132.8078732, 133.9195019, 134.0045428, 132.4552927, 133.0172775, 130.941459, 131.4737269, 132.1015969, 131.3990849, 134.5548438, 134.530537, 134.046574, 132.7655752, 133.2833512, 132.5605575, 133.5292788, 134.1761286, 132.9590579, 130.4017155, 130.8774722, 130.6915113, 130.5083735, 130.3008576, 129.880269, 129.877667, 129.7151101, 129.287521, 128.841093, 130.7078911, 131.0434341, 130.0257515, 130.7625544, 131.609272, 131.1883247, 130.9409659, 131.9000575, 131.4202411, 131.6650094, 131.0616214, 131.3077866, 130.5571158, 130.8520774, 130.9788775, 129.49378, 127.6791568, 127.9773162, 126.7711774, 131.2320154, 125.2811486, 124.1754442, 123.0044532};
16-
17-
18- public static String getLabelById(String id) {
19- switch (id) {
20-
21- case "011000":
22- return "道北 稚内";
23-
24- case "012010":
25- return "道北 旭川";
26-
27- case "012020":
28- return "道北 留萌";
29-
30- case "013010":
31- return "道東 網走";
32-
33- case "013020":
34- return "道東 北見";
35-
36- case "013030":
37- return "道東 紋別";
38-
39- case "014010":
40- return "道東 根室";
41-
42- case "014020":
43- return "道東 釧路";
44-
45- case "014030":
46- return "道東 帯広";
47-
48- case "015010":
49- return "道南 室蘭";
50-
51- case "015020":
52- return "道南 浦河";
53-
54- case "016010":
55- return "道央 札幌";
56-
57- case "016020":
58- return "道央 岩見沢";
59-
60- case "016030":
61- return "道央 倶知安";
62-
63- case "017010":
64- return "道南 函館";
65-
66- case "017020":
67- return "道南 江差";
68-
69- case "020010":
70- return "青森県 青森";
71-
72- case "020020":
73- return "青森県 むつ";
74-
75- case "020030":
76- return "青森県 八戸";
77-
78- case "030010":
79- return "岩手県 盛岡";
80-
81- case "030020":
82- return "岩手県 宮古";
83-
84- case "030030":
85- return "岩手県 大船渡";
86-
87- case "040010":
88- return "宮城県 仙台";
89-
90- case "040020":
91- return "宮城県 白石";
92-
93- case "050010":
94- return "秋田県 秋田";
95-
96- case "050020":
97- return "秋田県 横手";
98-
99- case "060010":
100- return "山形県 山形";
101-
102- case "060020":
103- return "山形県 米沢";
104-
105- case "060030":
106- return "山形県 酒田";
107-
108- case "060040":
109- return "山形県 新庄";
110-
111- case "070010":
112- return "福島県 福島";
113-
114- case "070020":
115- return "福島県 小名浜";
116-
117- case "070030":
118- return "福島県 若松";
119-
120- case "080010":
121- return "茨城県 水戸";
122-
123- case "080020":
124- return "茨城県 土浦";
125-
126- case "090010":
127- return "栃木県 宇都宮";
128-
129- case "090020":
130- return "栃木県 大田原";
131-
132- case "100010":
133- return "群馬県 前橋";
134-
135- case "100020":
136- return "群馬県 みなかみ";
137-
138- case "110010":
139- return "埼玉県 さいたま";
140-
141- case "110020":
142- return "埼玉県 熊谷";
143-
144- case "110030":
145- return "埼玉県 秩父";
146-
147- case "120010":
148- return "千葉県 千葉";
149-
150- case "120020":
151- return "千葉県 銚子";
152-
153- case "120030":
154- return "千葉県 館山";
155-
156- case "130010":
157- return "東京都 東京";
158-
159- case "130020":
160- return "東京都 大島";
161-
162- case "130030":
163- return "東京都 八丈島";
164-
165- case "130040":
166- return "東京都 父島";
167-
168- case "140010":
169- return "神奈川県 横浜";
170-
171- case "140020":
172- return "神奈川県 小田原";
173-
174- case "150010":
175- return "新潟県 新潟";
176-
177- case "150020":
178- return "新潟県 長岡";
179-
180- case "150030":
181- return "新潟県 高田";
182-
183- case "150040":
184- return "新潟県 相川";
185-
186- case "160010":
187- return "富山県 富山";
188-
189- case "160020":
190- return "富山県 伏木";
191-
192- case "170010":
193- return "石川県 金沢";
194-
195- case "170020":
196- return "石川県 輪島";
197-
198- case "180010":
199- return "福井県 福井";
200-
201- case "180020":
202- return "福井県 敦賀";
203-
204- case "190010":
205- return "山梨県 甲府";
206-
207- case "190020":
208- return "山梨県 河口湖";
209-
210- case "200010":
211- return "長野県 長野";
212-
213- case "200020":
214- return "長野県 松本";
215-
216- case "200030":
217- return "長野県 飯田";
218-
219- case "210010":
220- return "岐阜県 岐阜";
221-
222- case "210020":
223- return "岐阜県 高山";
224-
225- case "220010":
226- return "静岡県 静岡";
227-
228- case "220020":
229- return "静岡県 網代";
230-
231- case "220030":
232- return "静岡県 三島";
233-
234- case "220040":
235- return "静岡県 浜松";
236-
237- case "230010":
238- return "愛知県 名古屋";
239-
240- case "230020":
241- return "愛知県 豊橋";
242-
243- case "240010":
244- return "三重県 津";
245-
246- case "240020":
247- return "三重県 尾鷲";
248-
249- case "250010":
250- return "滋賀県 大津";
251-
252- case "250020":
253- return "滋賀県 彦根";
254-
255- case "260010":
256- return "京都府 京都";
257-
258- case "260020":
259- return "京都府 舞鶴";
260-
261- case "270000":
262- return "大阪府 大阪";
263-
264- case "280010":
265- return "兵庫県 神戸";
266-
267- case "280020":
268- return "兵庫県 豊岡";
269-
270- case "290010":
271- return "奈良県 奈良";
272-
273- case "290020":
274- return "奈良県 風屋";
275-
276- case "300010":
277- return "和歌山県 和歌山";
278-
279- case "300020":
280- return "和歌山県 潮岬";
281-
282- case "310010":
283- return "鳥取県 鳥取";
284-
285- case "310020":
286- return "鳥取県 米子";
287-
288- case "320010":
289- return "島根県 松江";
290-
291- case "320020":
292- return "島根県 浜田";
293-
294- case "320030":
295- return "島根県 西郷";
296-
297- case "330010":
298- return "岡山県 岡山";
299-
300- case "330020":
301- return "岡山県 津山";
302-
303- case "340010":
304- return "広島県 広島";
305-
306- case "340020":
307- return "広島県 庄原";
308-
309- case "350010":
310- return "山口県 下関";
311-
312- case "350020":
313- return "山口県 山口";
314-
315- case "350030":
316- return "山口県 柳井";
317-
318- case "350040":
319- return "山口県 萩";
320-
321- case "360010":
322- return "徳島県 徳島";
323-
324- case "360020":
325- return "徳島県 日和佐";
326-
327- case "370000":
328- return "香川県 高松";
329-
330- case "380010":
331- return "愛媛県 松山";
332-
333- case "380020":
334- return "愛媛県 新居浜";
335-
336- case "380030":
337- return "愛媛県 宇和島";
338-
339- case "390010":
340- return "高知県 高知";
341-
342- case "390020":
343- return "高知県 室戸岬";
344-
345- case "390030":
346- return "高知県 清水";
347-
348- case "400010":
349- return "福岡県 福岡";
350-
351- case "400020":
352- return "福岡県 八幡";
353-
354- case "400030":
355- return "福岡県 飯塚";
356-
357- case "400040":
358- return "福岡県 久留米";
359-
360- case "410010":
361- return "佐賀県 佐賀";
362-
363- case "410020":
364- return "佐賀県 伊万里";
365-
366- case "420010":
367- return "長崎県 長崎";
368-
369- case "420020":
370- return "長崎県 佐世保";
371-
372- case "420030":
373- return "長崎県 厳原";
374-
375- case "420040":
376- return "長崎県 福江";
377-
378- case "430010":
379- return "熊本県 熊本";
380-
381- case "430020":
382- return "熊本県 阿蘇乙姫";
383-
384- case "430030":
385- return "熊本県 牛深";
386-
387- case "430040":
388- return "熊本県 人吉";
389-
390- case "440010":
391- return "大分県 大分";
392-
393- case "440020":
394- return "大分県 中津";
395-
396- case "440030":
397- return "大分県 日田";
398-
399- case "440040":
400- return "大分県 佐伯";
401-
402- case "450010":
403- return "宮崎県 宮崎";
404-
405- case "450020":
406- return "宮崎県 延岡";
407-
408- case "450030":
409- return "宮崎県 都城";
410-
411- case "450040":
412- return "宮崎県 高千穂";
413-
414- case "460010":
415- return "鹿児島県 鹿児島";
416-
417- case "460020":
418- return "鹿児島県 鹿屋";
419-
420- case "460030":
421- return "鹿児島県 種子島";
422-
423- case "460040":
424- return "鹿児島県 名瀬";
425-
426- case "471010":
427- return "沖縄県 那覇";
428-
429- case "471020":
430- return "沖縄県 名護";
431-
432- case "471030":
433- return "沖縄県 久米島";
434-
435- case "472000":
436- return "沖縄県 南大東";
437-
438- case "473000":
439- return "沖縄県 宮古島";
440-
441- case "474010":
442- return "沖縄県 石垣島";
443-
444- case "474020":
445- return "沖縄県 与那国島";
446-
447- default:
448- return null;
449- }
450- }
451-
452- public static String getPrefById(String id) {
453- switch (id) {
454-
455- case "011000":
456- return "道北";
457-
458- case "012010":
459- return "道北";
460-
461- case "012020":
462- return "道北";
463-
464- case "013010":
465- return "道東";
466-
467- case "013020":
468- return "道東";
469-
470- case "013030":
471- return "道東";
472-
473- case "014010":
474- return "道東";
475-
476- case "014020":
477- return "道東";
478-
479- case "014030":
480- return "道東";
481-
482- case "015010":
483- return "道南";
484-
485- case "015020":
486- return "道南";
487-
488- case "016010":
489- return "道央";
490-
491- case "016020":
492- return "道央";
493-
494- case "016030":
495- return "道央";
496-
497- case "017010":
498- return "道南";
499-
500- case "017020":
501- return "道南";
502-
503- case "020010":
504- return "青森県";
505-
506- case "020020":
507- return "青森県";
508-
509- case "020030":
510- return "青森県";
511-
512- case "030010":
513- return "岩手県";
514-
515- case "030020":
516- return "岩手県";
517-
518- case "030030":
519- return "岩手県";
520-
521- case "040010":
522- return "宮城県";
523-
524- case "040020":
525- return "宮城県";
526-
527- case "050010":
528- return "秋田県";
529-
530- case "050020":
531- return "秋田県";
532-
533- case "060010":
534- return "山形県";
535-
536- case "060020":
537- return "山形県";
538-
539- case "060030":
540- return "山形県";
541-
542- case "060040":
543- return "山形県";
544-
545- case "070010":
546- return "福島県";
547-
548- case "070020":
549- return "福島県";
550-
551- case "070030":
552- return "福島県";
553-
554- case "080010":
555- return "茨城県";
556-
557- case "080020":
558- return "茨城県";
559-
560- case "090010":
561- return "栃木県";
562-
563- case "090020":
564- return "栃木県";
565-
566- case "100010":
567- return "群馬県";
568-
569- case "100020":
570- return "群馬県";
571-
572- case "110010":
573- return "埼玉県";
574-
575- case "110020":
576- return "埼玉県";
577-
578- case "110030":
579- return "埼玉県";
580-
581- case "120010":
582- return "千葉県";
583-
584- case "120020":
585- return "千葉県";
586-
587- case "120030":
588- return "千葉県";
589-
590- case "130010":
591- return "東京都";
592-
593- case "130020":
594- return "東京都";
595-
596- case "130030":
597- return "東京都";
598-
599- case "130040":
600- return "東京都";
601-
602- case "140010":
603- return "神奈川県";
604-
605- case "140020":
606- return "神奈川県";
607-
608- case "150010":
609- return "新潟県";
610-
611- case "150020":
612- return "新潟県";
613-
614- case "150030":
615- return "新潟県";
616-
617- case "150040":
618- return "新潟県";
619-
620- case "160010":
621- return "富山県";
622-
623- case "160020":
624- return "富山県";
625-
626- case "170010":
627- return "石川県";
628-
629- case "170020":
630- return "石川県";
631-
632- case "180010":
633- return "福井県";
634-
635- case "180020":
636- return "福井県";
637-
638- case "190010":
639- return "山梨県";
640-
641- case "190020":
642- return "山梨県";
643-
644- case "200010":
645- return "長野県";
646-
647- case "200020":
648- return "長野県";
649-
650- case "200030":
651- return "長野県";
652-
653- case "210010":
654- return "岐阜県";
655-
656- case "210020":
657- return "岐阜県";
658-
659- case "220010":
660- return "静岡県";
661-
662- case "220020":
663- return "静岡県";
664-
665- case "220030":
666- return "静岡県";
667-
668- case "220040":
669- return "静岡県";
670-
671- case "230010":
672- return "愛知県";
673-
674- case "230020":
675- return "愛知県";
676-
677- case "240010":
678- return "三重県";
679-
680- case "240020":
681- return "三重県";
682-
683- case "250010":
684- return "滋賀県";
685-
686- case "250020":
687- return "滋賀県";
688-
689- case "260010":
690- return "京都府";
691-
692- case "260020":
693- return "京都府";
694-
695- case "270000":
696- return "大阪府";
697-
698- case "280010":
699- return "兵庫県";
700-
701- case "280020":
702- return "兵庫県";
703-
704- case "290010":
705- return "奈良県";
706-
707- case "290020":
708- return "奈良県";
709-
710- case "300010":
711- return "和歌山県";
712-
713- case "300020":
714- return "和歌山県";
715-
716- case "310010":
717- return "鳥取県";
718-
719- case "310020":
720- return "鳥取県";
721-
722- case "320010":
723- return "島根県";
724-
725- case "320020":
726- return "島根県";
727-
728- case "320030":
729- return "島根県";
730-
731- case "330010":
732- return "岡山県";
733-
734- case "330020":
735- return "岡山県";
736-
737- case "340010":
738- return "広島県";
739-
740- case "340020":
741- return "広島県";
742-
743- case "350010":
744- return "山口県";
745-
746- case "350020":
747- return "山口県";
748-
749- case "350030":
750- return "山口県";
751-
752- case "350040":
753- return "山口県";
754-
755- case "360010":
756- return "徳島県";
757-
758- case "360020":
759- return "徳島県";
760-
761- case "370000":
762- return "香川県";
763-
764- case "380010":
765- return "愛媛県";
766-
767- case "380020":
768- return "愛媛県";
769-
770- case "380030":
771- return "愛媛県";
772-
773- case "390010":
774- return "高知県";
775-
776- case "390020":
777- return "高知県";
778-
779- case "390030":
780- return "高知県";
781-
782- case "400010":
783- return "福岡県";
784-
785- case "400020":
786- return "福岡県";
787-
788- case "400030":
789- return "福岡県";
790-
791- case "400040":
792- return "福岡県";
793-
794- case "410010":
795- return "佐賀県";
796-
797- case "410020":
798- return "佐賀県";
799-
800- case "420010":
801- return "長崎県";
802-
803- case "420020":
804- return "長崎県";
805-
806- case "420030":
807- return "長崎県";
808-
809- case "420040":
810- return "長崎県";
811-
812- case "430010":
813- return "熊本県";
814-
815- case "430020":
816- return "熊本県";
817-
818- case "430030":
819- return "熊本県";
820-
821- case "430040":
822- return "熊本県";
823-
824- case "440010":
825- return "大分県";
826-
827- case "440020":
828- return "大分県";
829-
830- case "440030":
831- return "大分県";
832-
833- case "440040":
834- return "大分県";
835-
836- case "450010":
837- return "宮崎県";
838-
839- case "450020":
840- return "宮崎県";
841-
842- case "450030":
843- return "宮崎県";
844-
845- case "450040":
846- return "宮崎県";
847-
848- case "460010":
849- return "鹿児島県";
850-
851- case "460020":
852- return "鹿児島県";
853-
854- case "460030":
855- return "鹿児島県";
856-
857- case "460040":
858- return "鹿児島県";
859-
860- case "471010":
861- return "沖縄県";
862-
863- case "471020":
864- return "沖縄県";
865-
866- case "471030":
867- return "沖縄県";
868-
869- case "472000":
870- return "沖縄県";
871-
872- case "473000":
873- return "沖縄県";
874-
875- case "474010":
876- return "沖縄県";
877-
878- case "474020":
879- return "沖縄県";
880-
881- default:
882- return null;
883- }
884- }
885-
886- public static String getCityById(String id) {
887- switch (id) {
888-
889- case "011000":
890- return "稚内";
891-
892- case "012010":
893- return "旭川";
894-
895- case "012020":
896- return "留萌";
897-
898- case "013010":
899- return "網走";
900-
901- case "013020":
902- return "北見";
903-
904- case "013030":
905- return "紋別";
906-
907- case "014010":
908- return "根室";
909-
910- case "014020":
911- return "釧路";
912-
913- case "014030":
914- return "帯広";
915-
916- case "015010":
917- return "室蘭";
918-
919- case "015020":
920- return "浦河";
921-
922- case "016010":
923- return "札幌";
924-
925- case "016020":
926- return "岩見沢";
927-
928- case "016030":
929- return "倶知安";
930-
931- case "017010":
932- return "函館";
933-
934- case "017020":
935- return "江差";
936-
937- case "020010":
938- return "青森";
939-
940- case "020020":
941- return "むつ";
942-
943- case "020030":
944- return "八戸";
945-
946- case "030010":
947- return "盛岡";
948-
949- case "030020":
950- return "宮古";
951-
952- case "030030":
953- return "大船渡";
954-
955- case "040010":
956- return "仙台";
957-
958- case "040020":
959- return "白石";
960-
961- case "050010":
962- return "秋田";
963-
964- case "050020":
965- return "横手";
966-
967- case "060010":
968- return "山形";
969-
970- case "060020":
971- return "米沢";
972-
973- case "060030":
974- return "酒田";
975-
976- case "060040":
977- return "新庄";
978-
979- case "070010":
980- return "福島";
981-
982- case "070020":
983- return "小名浜";
984-
985- case "070030":
986- return "若松";
987-
988- case "080010":
989- return "水戸";
990-
991- case "080020":
992- return "土浦";
993-
994- case "090010":
995- return "宇都宮";
996-
997- case "090020":
998- return "大田原";
999-
1000- case "100010":
1001- return "前橋";
1002-
1003- case "100020":
1004- return "みなかみ";
1005-
1006- case "110010":
1007- return "さいたま";
1008-
1009- case "110020":
1010- return "熊谷";
1011-
1012- case "110030":
1013- return "秩父";
1014-
1015- case "120010":
1016- return "千葉";
1017-
1018- case "120020":
1019- return "銚子";
1020-
1021- case "120030":
1022- return "館山";
1023-
1024- case "130010":
1025- return "東京";
1026-
1027- case "130020":
1028- return "大島";
1029-
1030- case "130030":
1031- return "八丈島";
1032-
1033- case "130040":
1034- return "父島";
1035-
1036- case "140010":
1037- return "横浜";
1038-
1039- case "140020":
1040- return "小田原";
1041-
1042- case "150010":
1043- return "新潟";
1044-
1045- case "150020":
1046- return "長岡";
1047-
1048- case "150030":
1049- return "高田";
1050-
1051- case "150040":
1052- return "相川";
1053-
1054- case "160010":
1055- return "富山";
1056-
1057- case "160020":
1058- return "伏木";
1059-
1060- case "170010":
1061- return "金沢";
1062-
1063- case "170020":
1064- return "輪島";
1065-
1066- case "180010":
1067- return "福井";
1068-
1069- case "180020":
1070- return "敦賀";
1071-
1072- case "190010":
1073- return "甲府";
1074-
1075- case "190020":
1076- return "河口湖";
1077-
1078- case "200010":
1079- return "長野";
1080-
1081- case "200020":
1082- return "松本";
1083-
1084- case "200030":
1085- return "飯田";
1086-
1087- case "210010":
1088- return "岐阜";
1089-
1090- case "210020":
1091- return "高山";
1092-
1093- case "220010":
1094- return "静岡";
1095-
1096- case "220020":
1097- return "網代";
1098-
1099- case "220030":
1100- return "三島";
1101-
1102- case "220040":
1103- return "浜松";
1104-
1105- case "230010":
1106- return "名古屋";
1107-
1108- case "230020":
1109- return "豊橋";
1110-
1111- case "240010":
1112- return "津";
1113-
1114- case "240020":
1115- return "尾鷲";
1116-
1117- case "250010":
1118- return "大津";
1119-
1120- case "250020":
1121- return "彦根";
1122-
1123- case "260010":
1124- return "京都";
1125-
1126- case "260020":
1127- return "舞鶴";
1128-
1129- case "270000":
1130- return "大阪";
1131-
1132- case "280010":
1133- return "神戸";
1134-
1135- case "280020":
1136- return "豊岡";
1137-
1138- case "290010":
1139- return "奈良";
1140-
1141- case "290020":
1142- return "風屋";
1143-
1144- case "300010":
1145- return "和歌山";
1146-
1147- case "300020":
1148- return "潮岬";
1149-
1150- case "310010":
1151- return "鳥取";
1152-
1153- case "310020":
1154- return "米子";
1155-
1156- case "320010":
1157- return "松江";
1158-
1159- case "320020":
1160- return "浜田";
1161-
1162- case "320030":
1163- return "西郷";
1164-
1165- case "330010":
1166- return "岡山";
1167-
1168- case "330020":
1169- return "津山";
1170-
1171- case "340010":
1172- return "広島";
1173-
1174- case "340020":
1175- return "庄原";
1176-
1177- case "350010":
1178- return "下関";
1179-
1180- case "350020":
1181- return "山口";
1182-
1183- case "350030":
1184- return "柳井";
1185-
1186- case "350040":
1187- return "萩";
1188-
1189- case "360010":
1190- return "徳島";
1191-
1192- case "360020":
1193- return "日和佐";
1194-
1195- case "370000":
1196- return "高松";
1197-
1198- case "380010":
1199- return "松山";
1200-
1201- case "380020":
1202- return "新居浜";
1203-
1204- case "380030":
1205- return "宇和島";
1206-
1207- case "390010":
1208- return "高知";
1209-
1210- case "390020":
1211- return "室戸岬";
1212-
1213- case "390030":
1214- return "清水";
1215-
1216- case "400010":
1217- return "福岡";
1218-
1219- case "400020":
1220- return "八幡";
1221-
1222- case "400030":
1223- return "飯塚";
1224-
1225- case "400040":
1226- return "久留米";
1227-
1228- case "410010":
1229- return "佐賀";
1230-
1231- case "410020":
1232- return "伊万里";
1233-
1234- case "420010":
1235- return "長崎";
1236-
1237- case "420020":
1238- return "佐世保";
1239-
1240- case "420030":
1241- return "厳原";
1242-
1243- case "420040":
1244- return "福江";
1245-
1246- case "430010":
1247- return "熊本";
1248-
1249- case "430020":
1250- return "阿蘇乙姫";
1251-
1252- case "430030":
1253- return "牛深";
1254-
1255- case "430040":
1256- return "人吉";
1257-
1258- case "440010":
1259- return "大分";
1260-
1261- case "440020":
1262- return "中津";
1263-
1264- case "440030":
1265- return "日田";
1266-
1267- case "440040":
1268- return "佐伯";
1269-
1270- case "450010":
1271- return "宮崎";
1272-
1273- case "450020":
1274- return "延岡";
1275-
1276- case "450030":
1277- return "都城";
1278-
1279- case "450040":
1280- return "高千穂";
1281-
1282- case "460010":
1283- return "鹿児島";
1284-
1285- case "460020":
1286- return "鹿屋";
1287-
1288- case "460030":
1289- return "種子島";
1290-
1291- case "460040":
1292- return "名瀬";
1293-
1294- case "471010":
1295- return "那覇";
1296-
1297- case "471020":
1298- return "名護";
1299-
1300- case "471030":
1301- return "久米島";
1302-
1303- case "472000":
1304- return "南大東";
1305-
1306- case "473000":
1307- return "宮古島";
1308-
1309- case "474010":
1310- return "石垣島";
1311-
1312- case "474020":
1313- return "与那国島";
1314-
1315- default:
1316- return null;
1317- }
1318- }
1319-
1320-
1321-
1322- public static Double getLatById(String id) {
1323- switch (id) {
1324-
1325- case "011000":
1326- return 45.4156641;
1327-
1328- case "012010":
1329- return 43.7706355;
1330-
1331- case "012020":
1332- return 43.9409868;
1333-
1334- case "013010":
1335- return 44.0206319;
1336-
1337- case "013020":
1338- return 43.8040314;
1339-
1340- case "013030":
1341- return 44.3564842;
1342-
1343- case "014010":
1344- return 43.3300759;
1345-
1346- case "014020":
1347- return 42.9848542;
1348-
1349- case "014030":
1350- return 42.9238989;
1351-
1352- case "015010":
1353- return 42.3152306;
1354-
1355- case "015020":
1356- return 42.1685159;
1357-
1358- case "016010":
1359- return 43.0620958;
1360-
1361- case "016020":
1362- return 43.1962055;
1363-
1364- case "016030":
1365- return 42.9018294;
1366-
1367- case "017010":
1368- return 41.7687933;
1369-
1370- case "017020":
1371- return 41.8691558;
1372-
1373- case "020010":
1374- return 40.822072;
1375-
1376- case "020020":
1377- return 41.2927457;
1378-
1379- case "020030":
1380- return 40.5122839;
1381-
1382- case "030010":
1383- return 39.702053;
1384-
1385- case "030020":
1386- return 39.6414202;
1387-
1388- case "030030":
1389- return 39.0819011;
1390-
1391- case "040010":
1392- return 38.268215;
1393-
1394- case "040020":
1395- return 38.0024779;
1396-
1397- case "050010":
1398- return 39.7199218;
1399-
1400- case "050020":
1401- return 39.3137816;
1402-
1403- case "060010":
1404- return 38.2554388;
1405-
1406- case "060020":
1407- return 37.9222401;
1408-
1409- case "060030":
1410- return 38.9147858;
1411-
1412- case "060040":
1413- return 38.7650154;
1414-
1415- case "070010":
1416- return 37.7608337;
1417-
1418- case "070020":
1419- return 36.9490884;
1420-
1421- case "070030":
1422- return 37.4947611;
1423-
1424- case "080010":
1425- return 36.3665027;
1426-
1427- case "080020":
1428- return 36.0782972;
1429-
1430- case "090010":
1431- return 36.5551124;
1432-
1433- case "090020":
1434- return 36.871484;
1435-
1436- case "100010":
1437- return 36.3894816;
1438-
1439- case "100020":
1440- return 36.6786996;
1441-
1442- case "110010":
1443- return 35.8617292;
1444-
1445- case "110020":
1446- return 36.1473097;
1447-
1448- case "110030":
1449- return 35.9920551;
1450-
1451- case "120010":
1452- return 35.6072668;
1453-
1454- case "120020":
1455- return 35.7346813;
1456-
1457- case "120030":
1458- return 34.9965057;
1459-
1460- case "130010":
1461- return 35.7090259;
1462-
1463- case "130020":
1464- return 34.7500396;
1465-
1466- case "130030":
1467- return 33.1127398;
1468-
1469- case "130040":
1470- return 27.0750533;
1471-
1472- case "140010":
1473- return 35.4437078;
1474-
1475- case "140020":
1476- return 35.2645639;
1477-
1478- case "150010":
1479- return 37.9161924;
1480-
1481- case "150020":
1482- return 37.4462652;
1483-
1484- case "150030":
1485- return 37.1153895;
1486-
1487- case "150040":
1488- return 38.0183525;
1489-
1490- case "160010":
1491- return 36.6959518;
1492-
1493- case "160020":
1494- return 36.78994;
1495-
1496- case "170010":
1497- return 36.56132540000001;
1498-
1499- case "170020":
1500- return 37.3905901;
1501-
1502- case "180010":
1503- return 36.0640669;
1504-
1505- case "180020":
1506- return 35.6452443;
1507-
1508- case "190010":
1509- return 35.66228;
1510-
1511- case "190020":
1512- return 35.4973137;
1513-
1514- case "200010":
1515- return 36.6485829;
1516-
1517- case "200020":
1518- return 36.2380381;
1519-
1520- case "200030":
1521- return 35.5149777;
1522-
1523- case "210010":
1524- return 35.4232984;
1525-
1526- case "210020":
1527- return 36.1461236;
1528-
1529- case "220010":
1530- return 34.975562;
1531-
1532- case "220020":
1533- return 35.0484388;
1534-
1535- case "220030":
1536- return 35.11840249999999;
1537-
1538- case "220040":
1539- return 34.7108344;
1540-
1541- case "230010":
1542- return 35.1814464;
1543-
1544- case "230020":
1545- return 34.7691995;
1546-
1547- case "240010":
1548- return 34.718596;
1549-
1550- case "240020":
1551- return 34.0707989;
1552-
1553- case "250010":
1554- return 35.0178929;
1555-
1556- case "250020":
1557- return 35.274461;
1558-
1559- case "260010":
1560- return 35.0212466;
1561-
1562- case "260020":
1563- return 35.4747971;
1564-
1565- case "270000":
1566- return 34.6937378;
1567-
1568- case "280010":
1569- return 34.690083;
1570-
1571- case "280020":
1572- return 35.5445754;
1573-
1574- case "290010":
1575- return 34.6850869;
1576-
1577- case "290020":
1578- return 34.043805;
1579-
1580- case "300010":
1581- return 34.2305113;
1582-
1583- case "300020":
1584- return 33.4479784;
1585-
1586- case "310010":
1587- return 35.5011326;
1588-
1589- case "310020":
1590- return 35.4280717;
1591-
1592- case "320010":
1593- return 35.4680595;
1594-
1595- case "320020":
1596- return 34.8993025;
1597-
1598- case "320030":
1599- return 35.4343758;
1600-
1601- case "330010":
1602- return 34.6551456;
1603-
1604- case "330020":
1605- return 35.0691155;
1606-
1607- case "340010":
1608- return 34.3852029;
1609-
1610- case "340020":
1611- return 34.8577316;
1612-
1613- case "350010":
1614- return 33.9578307;
1615-
1616- case "350020":
1617- return 34.178496;
1618-
1619- case "350030":
1620- return 33.9638333;
1621-
1622- case "350040":
1623- return 34.4081155;
1624-
1625- case "360010":
1626- return 34.0702703;
1627-
1628- case "360020":
1629- return 33.728915;
1630-
1631- case "370000":
1632- return 34.3427879;
1633-
1634- case "380010":
1635- return 33.8391574;
1636-
1637- case "380020":
1638- return 33.96028950000001;
1639-
1640- case "380030":
1641- return 33.2233404;
1642-
1643- case "390010":
1644- return 33.5595867;
1645-
1646- case "390020":
1647- return 33.2451032;
1648-
1649- case "390030":
1650- return 32.78299459999999;
1651-
1652- case "400010":
1653- return 33.5903547;
1654-
1655- case "400020":
1656- return 33.8622255;
1657-
1658- case "400030":
1659- return 33.6459075;
1660-
1661- case "400040":
1662- return 33.3192865;
1663-
1664- case "410010":
1665- return 33.263482;
1666-
1667- case "410020":
1668- return 33.2645856;
1669-
1670- case "420010":
1671- return 32.7502856;
1672-
1673- case "420020":
1674- return 33.1799153;
1675-
1676- case "420030":
1677- return 34.202646;
1678-
1679- case "420040":
1680- return 32.6963741;
1681-
1682- case "430010":
1683- return 32.8031004;
1684-
1685- case "430020":
1686- return 32.9434447;
1687-
1688- case "430030":
1689- return 32.1944694;
1690-
1691- case "430040":
1692- return 32.2100405;
1693-
1694- case "440010":
1695- return 33.2395578;
1696-
1697- case "440020":
1698- return 33.5982211;
1699-
1700- case "440030":
1701- return 33.3213327;
1702-
1703- case "440040":
1704- return 32.959806;
1705-
1706- case "450010":
1707- return 31.9076736;
1708-
1709- case "450020":
1710- return 32.5822723;
1711-
1712- case "450030":
1713- return 31.7195903;
1714-
1715- case "450040":
1716- return 32.71169;
1717-
1718- case "460010":
1719- return 31.5965535;
1720-
1721- case "460020":
1722- return 31.3782921;
1723-
1724- case "460030":
1725- return 30.609558;
1726-
1727- case "460040":
1728- return 28.377276;
1729-
1730- case "471010":
1731- return 26.2123124;
1732-
1733- case "471020":
1734- return 26.5915465;
1735-
1736- case "471030":
1737- return 26.3503959;
1738-
1739- case "472000":
1740- return 25.8286844;
1741-
1742- case "473000":
1743- return 24.80549;
1744-
1745- case "474010":
1746- return 24.4064027;
1747-
1748- case "474020":
1749- return 24.4679685;
1750-
1751- default:
1752- return null;
1753- }
1754- }
1755-
1756- public static Double getLngById(String id) {
1757- switch (id) {
1758-
1759- case "011000":
1760- return 141.6730822;
1761-
1762- case "012010":
1763- return 142.364819;
1764-
1765- case "012020":
1766- return 141.6370119;
1767-
1768- case "013010":
1769- return 144.2733983;
1770-
1771- case "013020":
1772- return 143.8958758;
1773-
1774- case "013030":
1775- return 143.3545032;
1776-
1777- case "014010":
1778- return 145.5827903;
1779-
1780- case "014020":
1781- return 144.3813556;
1782-
1783- case "014030":
1784- return 143.1961031;
1785-
1786- case "015010":
1787- return 140.9737991;
1788-
1789- case "015020":
1790- return 142.7681204;
1791-
1792- case "016010":
1793- return 141.3543763;
1794-
1795- case "016020":
1796- return 141.7759331;
1797-
1798- case "016030":
1799- return 140.7586977;
1800-
1801- case "017010":
1802- return 140.7288103;
1803-
1804- case "017020":
1805- return 140.12746;
1806-
1807- case "020010":
1808- return 140.7473647;
1809-
1810- case "020020":
1811- return 141.1834755;
1812-
1813- case "020030":
1814- return 141.4883986;
1815-
1816- case "030010":
1817- return 141.1544838;
1818-
1819- case "030020":
1820- return 141.9571395;
1821-
1822- case "030030":
1823- return 141.70853;
1824-
1825- case "040010":
1826- return 140.8693558;
1827-
1828- case "040020":
1829- return 140.6198605;
1830-
1831- case "050010":
1832- return 140.1035697;
1833-
1834- case "050020":
1835- return 140.5666488;
1836-
1837- case "060010":
1838- return 140.3396017;
1839-
1840- case "060020":
1841- return 140.1167811;
1842-
1843- case "060030":
1844- return 139.8365708;
1845-
1846- case "060040":
1847- return 140.3016084;
1848-
1849- case "070010":
1850- return 140.4747282;
1851-
1852- case "070020":
1853- return 140.9055861;
1854-
1855- case "070030":
1856- return 139.9298096;
1857-
1858- case "080010":
1859- return 140.4709965;
1860-
1861- case "080020":
1862- return 140.2043331;
1863-
1864- case "090010":
1865- return 139.8828072;
1866-
1867- case "090020":
1868- return 140.0174187;
1869-
1870- case "100010":
1871- return 139.0634281;
1872-
1873- case "100020":
1874- return 138.9990639;
1875-
1876- case "110010":
1877- return 139.6454822;
1878-
1879- case "110020":
1880- return 139.3886446;
1881-
1882- case "110030":
1883- return 139.0848169;
1884-
1885- case "120010":
1886- return 140.1062907;
1887-
1888- case "120020":
1889- return 140.8266406;
1890-
1891- case "120030":
1892- return 139.8699653;
1893-
1894- case "130010":
1895- return 139.7319925;
1896-
1897- case "130020":
1898- return 139.3555791;
1899-
1900- case "130030":
1901- return 139.7890648;
1902-
1903- case "130040":
1904- return 142.2116025;
1905-
1906- case "140010":
1907- return 139.6380256;
1908-
1909- case "140020":
1910- return 139.1521538;
1911-
1912- case "150010":
1913- return 139.0364126;
1914-
1915- case "150020":
1916- return 138.8512772;
1917-
1918- case "150030":
1919- return 138.242142;
1920-
1921- case "150040":
1922- return 138.368082;
1923-
1924- case "160010":
1925- return 137.2136768;
1926-
1927- case "160020":
1928- return 137.0569881;
1929-
1930- case "170010":
1931- return 136.6562051;
1932-
1933- case "170020":
1934- return 136.8991957;
1935-
1936- case "180010":
1937- return 136.2194938;
1938-
1939- case "180020":
1940- return 136.0554408;
1941-
1942- case "190010":
1943- return 138.5682015;
1944-
1945- case "190020":
1946- return 138.7550838;
1947-
1948- case "200010":
1949- return 138.1947709;
1950-
1951- case "200020":
1952- return 137.9720341;
1953-
1954- case "200030":
1955- return 137.8214466;
1956-
1957- case "210010":
1958- return 136.7606537;
1959-
1960- case "210020":
1961- return 137.2521729;
1962-
1963- case "220010":
1964- return 138.3827596;
1965-
1966- case "220020":
1967- return 139.0915361;
1968-
1969- case "220030":
1970- return 138.9185126;
1971-
1972- case "220040":
1973- return 137.7261258;
1974-
1975- case "230010":
1976- return 136.906398;
1977-
1978- case "230020":
1979- return 137.3914662;
1980-
1981- case "240010":
1982- return 136.5056975;
1983-
1984- case "240020":
1985- return 136.1909953;
1986-
1987- case "250010":
1988- return 135.8546074;
1989-
1990- case "250020":
1991- return 136.2596226;
1992-
1993- case "260010":
1994- return 135.7555968;
1995-
1996- case "260020":
1997- return 135.3859918;
1998-
1999- case "270000":
2000- return 135.5021651;
2001-
2002- case "280010":
2003- return 135.1955112;
2004-
2005- case "280020":
2006- return 134.8201814;
2007-
2008- case "290010":
2009- return 135.8050002;
2010-
2011- case "290020":
2012- return 135.7817794;
2013-
2014- case "300010":
2015- return 135.1708083;
2016-
2017- case "300020":
2018- return 135.7614191;
2019-
2020- case "310010":
2021- return 134.2350914;
2022-
2023- case "310020":
2024- return 133.3309447;
2025-
2026- case "320010":
2027- return 133.048375;
2028-
2029- case "320020":
2030- return 132.0797833;
2031-
2032- case "320030":
2033- return 132.8078732;
2034-
2035- case "330010":
2036- return 133.9195019;
2037-
2038- case "330020":
2039- return 134.0045428;
2040-
2041- case "340010":
2042- return 132.4552927;
2043-
2044- case "340020":
2045- return 133.0172775;
2046-
2047- case "350010":
2048- return 130.941459;
2049-
2050- case "350020":
2051- return 131.4737269;
2052-
2053- case "350030":
2054- return 132.1015969;
2055-
2056- case "350040":
2057- return 131.3990849;
2058-
2059- case "360010":
2060- return 134.5548438;
2061-
2062- case "360020":
2063- return 134.530537;
2064-
2065- case "370000":
2066- return 134.046574;
2067-
2068- case "380010":
2069- return 132.7655752;
2070-
2071- case "380020":
2072- return 133.2833512;
2073-
2074- case "380030":
2075- return 132.5605575;
2076-
2077- case "390010":
2078- return 133.5292788;
2079-
2080- case "390020":
2081- return 134.1761286;
2082-
2083- case "390030":
2084- return 132.9590579;
2085-
2086- case "400010":
2087- return 130.4017155;
2088-
2089- case "400020":
2090- return 130.8774722;
2091-
2092- case "400030":
2093- return 130.6915113;
2094-
2095- case "400040":
2096- return 130.5083735;
2097-
2098- case "410010":
2099- return 130.3008576;
2100-
2101- case "410020":
2102- return 129.880269;
2103-
2104- case "420010":
2105- return 129.877667;
2106-
2107- case "420020":
2108- return 129.7151101;
2109-
2110- case "420030":
2111- return 129.287521;
2112-
2113- case "420040":
2114- return 128.841093;
2115-
2116- case "430010":
2117- return 130.7078911;
2118-
2119- case "430020":
2120- return 131.0434341;
2121-
2122- case "430030":
2123- return 130.0257515;
2124-
2125- case "430040":
2126- return 130.7625544;
2127-
2128- case "440010":
2129- return 131.609272;
2130-
2131- case "440020":
2132- return 131.1883247;
2133-
2134- case "440030":
2135- return 130.9409659;
2136-
2137- case "440040":
2138- return 131.9000575;
2139-
2140- case "450010":
2141- return 131.4202411;
2142-
2143- case "450020":
2144- return 131.6650094;
2145-
2146- case "450030":
2147- return 131.0616214;
2148-
2149- case "450040":
2150- return 131.3077866;
2151-
2152- case "460010":
2153- return 130.5571158;
2154-
2155- case "460020":
2156- return 130.8520774;
2157-
2158- case "460030":
2159- return 130.9788775;
2160-
2161- case "460040":
2162- return 129.49378;
2163-
2164- case "471010":
2165- return 127.6791568;
2166-
2167- case "471020":
2168- return 127.9773162;
2169-
2170- case "471030":
2171- return 126.7711774;
2172-
2173- case "472000":
2174- return 131.2320154;
2175-
2176- case "473000":
2177- return 125.2811486;
2178-
2179- case "474010":
2180- return 124.1754442;
2181-
2182- case "474020":
2183- return 123.0044532;
2184-
2185- default:
2186- return null;
2187- }
2188- }
2189-
2190-}
--- a/build.gradle
+++ b/build.gradle
@@ -10,7 +10,7 @@ buildscript {
1010 google()
1111 }
1212 dependencies {
13- classpath 'com.android.tools.build:gradle:3.1.2'
13+ classpath 'com.android.tools.build:gradle:3.1.3'
1414
1515 // NOTE: Do not place your application dependencies here; they belong
1616 // in the individual module build.gradle files