質問編集履歴

2

```java``` で囲み、見やすくなるように少し直しました。

2019/04/27 17:21

投稿

3bji
3bji

スコア13

test CHANGED
File without changes
test CHANGED
@@ -74,8 +74,12 @@
74
74
 
75
75
  ### 該当のソースコード
76
76
 
77
+ ```java
78
+
77
79
  //質問と関係ない部分 ここから
78
80
 
81
+
82
+
79
83
  public class MapsActivity extends FragmentActivity implements OnMapReadyCallback {
80
84
 
81
85
 
@@ -132,7 +136,7 @@
132
136
 
133
137
 
134
138
 
135
- LatLng start = new LatLng(35.-----,139.-----);
139
+ LatLng start = new LatLng(35.-----,139.-----); //座標はプライバシー保護してます
136
140
 
137
141
  mMap.moveCamera(CameraUpdateFactory.newLatLng(start));
138
142
 
@@ -156,6 +160,8 @@
156
160
 
157
161
 
158
162
 
163
+ //座標はプライバシー保護してます
164
+
159
165
  //手動配列入れ
160
166
 
161
167
  tatemonoData[0].setKey("001");
@@ -230,12 +236,16 @@
230
236
 
231
237
  }
232
238
 
239
+ ```
240
+
233
241
 
234
242
 
235
243
 
236
244
 
237
245
  【建物クラス】
238
246
 
247
+ ```java
248
+
239
249
 
240
250
 
241
251
  import android.provider.Settings;
@@ -264,94 +274,36 @@
264
274
 
265
275
  System.out.println("エラー");
266
276
 
267
- }else {
268
-
269
- key = s;
277
+ }else { key = s; }
270
-
271
- }
272
278
 
273
279
  }
274
280
 
275
281
 
276
282
 
283
+ public void setAreaCode(String area) { this.areaCode = areaCode; }
284
+
285
+ public void setKindCode(String kind) { this.kindCode = kindCode; }
286
+
287
+ public void setNorthLat(double northLat) { this.northLat = northLat; }
288
+
289
+ public void setEastLong(double eastLong) { this.eastLong = eastLong; }
290
+
291
+
292
+
293
+ public String getKey(){ return key; }
294
+
277
- public void setAreaCode(String area) {
295
+ public String getAreaCode(){ return areaCode; }
278
-
279
- this.areaCode = areaCode;
296
+
280
-
281
- }
282
-
283
-
284
-
285
- public void setKindCode(String kind) {
297
+ public String getKindCode(){ return kindCode; }
286
-
287
- this.kindCode = kindCode;
298
+
288
-
289
- }
290
-
291
-
292
-
293
- public void setNorthLat(double northLat) {
299
+ public double getNorthLat(){ return northLat; }
294
-
295
- this.northLat = northLat;
300
+
296
-
297
- }
298
-
299
-
300
-
301
- public void setEastLong(double eastLong) {
301
+ public double getEastLong(){ return eastLong; }
302
-
303
- this.eastLong = eastLong;
304
-
305
- }
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
- public String getKey(){
314
-
315
- return key;
316
-
317
- }
318
-
319
-
320
-
321
- public String getAreaCode(){
322
-
323
- return areaCode;
324
-
325
- }
326
-
327
-
328
-
329
- public String getKindCode(){
330
-
331
- return kindCode;
332
-
333
- }
334
-
335
-
336
-
337
- public double getNorthLat(){
338
-
339
- return northLat;
340
-
341
- }
342
-
343
-
344
-
345
- public double getEastLong(){
346
-
347
- return eastLong;
348
-
349
- }
350
-
351
-
352
302
 
353
303
  }
354
304
 
305
+ ```
306
+
355
307
 
356
308
 
357
309
 

1

質問文に補足事項を書きました

2019/04/27 17:21

投稿

3bji
3bji

スコア13

test CHANGED
File without changes
test CHANGED
@@ -46,6 +46,16 @@
46
46
 
47
47
 
48
48
 
49
+ (補足)
50
+
51
+ KeyやAreaCode、KindCodeは
52
+
53
+ 今回の質問とは関係ありませんが
54
+
55
+ 後々追加したい機能のために設定してるものです。
56
+
57
+
58
+
49
59
 
50
60
 
51
61
  ### 発生している問題・エラーメッセージ