質問編集履歴
2
試したことを追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,7 +66,7 @@
|
|
66
66
|
|
67
67
|
```Swift
|
68
68
|
|
69
|
-
if let lat: JSON = json["
|
69
|
+
if let lat: JSON = json["legs"]["start_location"][0]{
|
70
70
|
|
71
71
|
print("経度",lat)
|
72
72
|
|
1
試したことを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -61,3 +61,21 @@
|
|
61
61
|
|
62
62
|
|
63
63
|
```
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
```Swift
|
68
|
+
|
69
|
+
if let lat: JSON = json["rates"]["legs"]["start_location"][0]{
|
70
|
+
|
71
|
+
print("経度",lat)
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
start_locationの経度を出そうとしたのですがnullが戻ってきます。
|
80
|
+
|
81
|
+
階層構造の考え方を間違っているのでしょうか
|