Skip to content

Commit c563b44

Browse files
e337Eunice Lee
andauthored
second batch of documentation (#11004)
* second batch of documentation * small fixes * add format: int32 to all integers * add format: int32 to integers in additional files Co-authored-by: Eunice Lee <[email protected]>
1 parent 1ddd7c2 commit c563b44

File tree

9 files changed

+913
-247
lines changed

9 files changed

+913
-247
lines changed

specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetMetroAreaInfo.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@
307307
"captionOverride": "Bus"
308308
}
309309
}
310-
]
310+
],
311+
"isFaresSupported": "true"
311312
}
312313
},
313314
"400": {

specification/maps/data-plane/Microsoft.Maps/Mobility/preview/1.0/examples/GetTransitItinerary.json

Lines changed: 153 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -2,156 +2,206 @@
22
"parameters": {
33
"api-version": "1.0",
44
"format": "json",
5-
"query": "68fa6e31-d1a4-4457-a15b-8f5036a76a78---201909167EB6D19458C443BFAD897246FD28DAD4:0---121",
5+
"query": "6f1eb44e-255f-4d06-9491-a35ee7864e19---20200929FF43D18907D24B35A1A7454DE7231C89:0---81",
66
"detailType": [
77
"geometry"
88
]
99
},
1010
"responses": {
1111
"200": {
1212
"body": {
13-
"departureTime": "2019-09-16T18:04:53Z",
14-
"arrivalTime": "2019-09-16T18:08:07Z",
13+
"departureTime": "2020-09-29T20:48:05Z",
14+
"arrivalTime": "2020-09-29T20:53:25Z",
1515
"legs": [
1616
{
17-
"legType": "Bicycle",
18-
"legStartTime": "2019-09-16T18:04:53Z",
19-
"legEndTime": "2019-09-16T18:08:07Z",
20-
"steps": [
17+
"legType": "Wait",
18+
"legStartTime": "2020-09-29T20:48:05Z",
19+
"legEndTime": "2020-09-29T20:48:05Z",
20+
"lineGroup": {
21+
"lineGroupId": "0---211457",
22+
"agencyId": "0---321",
23+
"agencyName": "CTA",
24+
"lineNumber": "22",
25+
"caption1": "Clark",
26+
"caption2": "22 Clark",
27+
"color": "565A5C",
28+
"transitType": "Bus"
29+
},
30+
"line": {
31+
"lineId": "0---1151684",
32+
"lineGroupId": "0---211457",
33+
"direction": "forward",
34+
"agencyId": "0---321",
35+
"lineNumber": "22",
36+
"lineDestination": "Southbound - Harrison"
37+
},
38+
"stops": [
39+
{
40+
"stopId": "0---161771",
41+
"stopKey": "1853",
42+
"stopName": "Clark & Oak (South)",
43+
"stopCode": "1853",
44+
"position": {
45+
"latitude": 41.900657,
46+
"longitude": -87.631426
47+
},
48+
"mainTransitType": "Bus",
49+
"mainAgencyId": "0---321",
50+
"mainAgencyName": "CTA"
51+
},
52+
{
53+
"stopId": "0---33004397",
54+
"stopKey": "18255",
55+
"stopName": "Clark & Huron (South)",
56+
"stopCode": "18255",
57+
"position": {
58+
"latitude": 41.894729,
59+
"longitude": -87.631288
60+
},
61+
"mainTransitType": "Bus",
62+
"mainAgencyId": "0---321",
63+
"mainAgencyName": "CTA"
64+
}
65+
],
66+
"waitOnVehicle": "false"
67+
},
68+
{
69+
"legType": "Bus",
70+
"legStartTime": "2020-09-29T20:48:05Z",
71+
"legEndTime": "2020-09-29T20:51:15Z",
72+
"lineGroup": {
73+
"lineGroupId": "81---211457",
74+
"agencyId": "81---321",
75+
"agencyName": "CTA",
76+
"lineNumber": "22",
77+
"caption1": "Clark",
78+
"caption2": "22 Clark",
79+
"color": "565A5C",
80+
"transitType": "Bus"
81+
},
82+
"line": {
83+
"lineId": "81---1151684",
84+
"lineGroupId": "81---211457",
85+
"direction": "forward",
86+
"agencyId": "81---321",
87+
"lineNumber": "22",
88+
"lineDestination": "Southbound - Harrison"
89+
},
90+
"stops": [
2191
{
22-
"direction": {
23-
"relativeDirection": "depart"
92+
"stopId": "81---161771",
93+
"stopKey": "1853",
94+
"stopName": "Clark & Oak (South)",
95+
"stopCode": "1853",
96+
"position": {
97+
"latitude": 41.900657,
98+
"longitude": -87.631426
2499
},
25-
"streetName": "3rd Avenue"
100+
"mainTransitType": "Bus",
101+
"mainAgencyId": "81---321",
102+
"mainAgencyName": "CTA"
26103
},
27104
{
28-
"direction": {
29-
"relativeDirection": "right"
105+
"stopId": "81---161772",
106+
"stopKey": "1854",
107+
"stopName": "Clark & Delaware (South)",
108+
"stopCode": "1854",
109+
"position": {
110+
"latitude": 41.899361,
111+
"longitude": -87.631386
30112
},
31-
"streetName": "Dean Street"
113+
"mainTransitType": "Bus",
114+
"mainAgencyId": "81---321",
115+
"mainAgencyName": "CTA"
32116
},
33117
{
34-
"direction": {
35-
"relativeDirection": "right"
118+
"stopId": "81---33004397",
119+
"stopKey": "18255",
120+
"stopName": "Clark & Huron (South)",
121+
"stopCode": "18255",
122+
"position": {
123+
"latitude": 41.894729,
124+
"longitude": -87.631288
36125
},
37-
"streetName": "5th Avenue"
126+
"mainTransitType": "Bus",
127+
"mainAgencyId": "81---321",
128+
"mainAgencyName": "CTA"
38129
}
39130
],
40-
"origin": {
41-
"position": {
42-
"latitude": 40.680903,
43-
"longitude": -73.983723
44-
}
45-
},
46-
"destination": {
47-
"position": {
48-
"latitude": 40.682051,
49-
"longitude": -73.976702
50-
}
51-
},
52131
"geometry": {
53132
"type": "LineString",
54133
"coordinates": [
55134
[
56-
-73.98373,
57-
40.6809
58-
],
59-
[
60-
-73.98371,
61-
40.68089
62-
],
63-
[
64-
-73.98328,
65-
40.68152
66-
],
67-
[
68-
-73.9831,
69-
40.68179
70-
],
71-
[
72-
-73.98303,
73-
40.68189
74-
],
75-
[
76-
-73.98302,
77-
40.68191
78-
],
79-
[
80-
-73.9829,
81-
40.68208
82-
],
83-
[
84-
-73.98286,
85-
40.68214
86-
],
87-
[
88-
-73.9828,
89-
40.68223
135+
-87.63157,
136+
41.90064
90137
],
91138
[
92-
-73.98243,
93-
40.68278
139+
-87.63156,
140+
41.90057
94141
],
95142
[
96-
-73.98199,
97-
40.68342
143+
-87.63153,
144+
41.90045
98145
],
99146
[
100-
-73.98161,
101-
40.68398
147+
-87.6315,
148+
41.90029
102149
],
103150
[
104-
-73.98157,
105-
40.68405
151+
-87.63121,
152+
41.89508
106153
],
107154
[
108-
-73.9812,
109-
40.6839
155+
-87.63121,
156+
41.89498
110157
],
111158
[
112-
-73.97984,
113-
40.68338
159+
-87.63121,
160+
41.89487
114161
],
115162
[
116-
-73.9794,
117-
40.6832
163+
-87.63121,
164+
41.89481
118165
],
119166
[
120-
-73.97924,
121-
40.68314
167+
-87.6312,
168+
41.89476
122169
],
123170
[
124-
-73.97912,
125-
40.68309
171+
-87.6312,
172+
41.89473
126173
],
127174
[
128-
-73.97899,
129-
40.68304
130-
],
131-
[
132-
-73.97675,
133-
40.68217
134-
],
135-
[
136-
-73.97659,
137-
40.68211
138-
],
139-
[
140-
-73.97665,
141-
40.68203
142-
],
143-
[
144-
-73.97665,
145-
40.68203
146-
],
147-
[
148-
-73.97671,
149-
40.68205
175+
-87.6312,
176+
41.89472
150177
]
151178
]
179+
},
180+
"legFare": {
181+
"fares": [
182+
{
183+
"price": {
184+
"amount": 225,
185+
"currencyCode": "USD"
186+
},
187+
"usage": "pay"
188+
}
189+
]
152190
}
153191
}
154-
]
192+
],
193+
"itineraryFare": {
194+
"price": {
195+
"amount": 225,
196+
"currencyCode": "USD"
197+
},
198+
"tickets": [
199+
{
200+
"amount": 225,
201+
"currencyCode": "USD"
202+
}
203+
]
204+
}
155205
}
156206
},
157207
"400": {

0 commit comments

Comments
 (0)