-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
route.json
1811 lines (1811 loc) · 68.8 KB
/
route.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"swagger": "2.0",
"info": {
"title": "Azure Maps Route Service",
"version": "2023-08-01-preview",
"description": "Azure Maps Route REST APIs"
},
"host": "atlas.microsoft.com",
"schemes": [
"https"
],
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"securityDefinitions": {
"AADToken": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure role-based access](https://docs.microsoft.com/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure role-based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built-in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios, we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Notes\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* \nThe `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* \nThe Azure role-based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.\n* \nUsage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently, Azure Active Directory [v1.0 or v2.0](https://docs.microsoft.com/azure/active-directory/develop/azure-ad-endpoint-comparison) supports Work, School, and Guests but does not support Personal accounts.",
"scopes": {
"https://atlas.microsoft.com/.default": "https://atlas.microsoft.com/.default"
}
},
"SharedKey": {
"type": "apiKey",
"description": "This is a shared key that is provisioned when you [Create an Azure Maps account](https://docs.microsoft.com/azure/azure-maps/quick-demo-map-app#create-an-azure-maps-account) in the Azure portal or using PowerShell, CLI, Azure SDKs, or REST API.\n\n With this key, any application can access all REST API. In other words, this key can be used as a master key in the account that they are issued in.\n\n For publicly exposed applications, our recommendation is to use the [confidential client applications](https://docs.microsoft.com/azure/azure-maps/authentication-best-practices#confidential-client-applications) approach to access Azure Maps REST APIs so your key can be securely stored.",
"name": "subscription-key",
"in": "query"
},
"SasToken": {
"type": "apiKey",
"description": "This is a shared access signature token is created from the List SAS operation on the [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.\n\n With this token, any application is authorized to access with Azure role-based access controls and fine-grain control to the expiration, rate, and region(s) of use for the particular token. In other words, the SAS Token can be used to allow applications to control access in a more secured way than the shared key.\n\n For publicly exposed applications, our recommendation is to configure a specific list of allowed origins on the [Map account resource](https://aka.ms/amauth) to limit rendering abuse and regularly renew the SAS Token.",
"name": "SAS Token",
"in": "header"
}
},
"security": [
{
"AADToken": [
"https://atlas.microsoft.com/.default"
]
},
{
"SharedKey": []
},
{
"SasToken": []
}
],
"responses": {},
"parameters": {
"ApiVersion": {
"name": "api-version",
"description": "Version number of Azure Maps API.",
"type": "string",
"in": "query",
"required": true,
"x-ms-parameter-location": "client"
},
"Accept-Language": {
"name": "Accept-Language",
"in": "header",
"description": "Language in which routing results should be returned. \n\nPlease refer to [Supported Languages](https://docs.microsoft.com/en-us/bingmaps/rest-services/common-parameters-and-types/supported-culture-codes) for details.",
"required": false,
"type": "string",
"x-ms-parameter-location": "client"
}
},
"paths": {
"/route/directions": {
"post": {
"description": "**Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\n\nReturns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day.\n\nInformation returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected.\n\n",
"operationId": "Route_PostDirections",
"consumes": [
"application/geo+json"
],
"produces": [
"application/geo+json"
],
"x-ms-client-name": "Route_PostRouteDirections",
"x-ms-examples": {
"Successfully retrieve a route between an origin and a destination with additional parameters in the body": {
"$ref": "./examples/PostRouteDirections.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ApiVersion"
},
{
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
"$ref": "#/parameters/Accept-Language"
},
{
"name": "routeDirectionsRequest",
"in": "body",
"description": "Request body of RouteDirections API in GeoJSON format.",
"required": true,
"schema": {
"$ref": "#/definitions/DirectionsRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/RouteDirectionsResponse"
}
},
"default": {
"description": "An unexpected error occurred.",
"schema": {
"$ref": "../../../Common/preview/1.0/common.json#/definitions/MapsErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "Error code of the error that occurred."
}
},
"x-ms-error-response": true
}
}
}
},
"/route/directions:batch": {
"post": {
"description": "**Directions Batch API**\n\n\n**Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\n\n\nThe Directions Batch API sends batches of queries to Directions API using just a single API call. The API allows caller to batch up to **100** queries.\n>[!Important]\n>By using this feature, you agree to the preview legal terms. See the [Preview Supplemental Terms](https://azure.microsoft.com/en-us/support/legal/preview-supplemental-terms/) for additional details.\n\n### Submit Synchronous Batch Request\nThe Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.\n```\nPOST https://atlas.microsoft.com/route/directions:batch?api-version=2023-08-01-preview\n```\n### POST Body for Batch Request\nTo send the _directions_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _directions_ queries:\n\n\n```\n{\n \"batchItems\": [\n {\n \"optionalId\": \"bbc9c0f6-ab52-49d8-a788-a658fa654c94\",\n \"type\": \"FeatureCollection\",\n \"features\": [\n {\n \"type\": \"Feature\",\n \"geometry\": {\n \"coordinates\": [\n -122.3368,\n 47.614988\n ],\n \"type\": \"Point\"\n },\n \"properties\": {\n \"pointIndex\": 0,\n \"pointType\": \"waypoint\"\n }\n },\n {\n \"type\": \"Feature\",\n \"geometry\": {\n \"coordinates\": [\n -122.316067,\n 47.606356\n ],\n \"type\": \"Point\"\n },\n \"properties\": {\n \"pointIndex\": 1,\n \"pointType\": \"waypoint\"\n }\n }\n ],\n \"optimizeRoute\": \"fastestWithoutTraffic\",\n \"routeOutputOptions\": [\n \"routeSummariesOnly\"\n ],\n \"maxRouteCount\": 3,\n \"travelMode\": \"driving\"\n },\n {\n \"optionalId\": \"a191de3c-1268-4986-98f0-03f0a5d9302a\",\n \"type\": \"FeatureCollection\",\n \"features\": [\n {\n \"type\": \"Feature\",\n \"geometry\": {\n \"coordinates\": [\n -122.3368,\n 47.614988\n ],\n \"type\": \"Point\"\n },\n \"properties\": {\n \"pointIndex\": 0,\n \"pointType\": \"waypoint\"\n }\n },\n {\n \"type\": \"Feature\",\n \"geometry\": {\n \"coordinates\": [\n -122.316067,\n 47.606356\n ],\n \"type\": \"Point\"\n },\n \"properties\": {\n \"pointIndex\": 1,\n \"pointType\": \"waypoint\"\n }\n }\n ],\n \"optimizeRoute\": \"shortest\",\n \"routeOutputOptions\": [\n \"routeSummary\"\n ],\n \"maxRouteCount\": 2,\n \"travelMode\": \"driving\"\n }\n ]\n}\n ```\n\nA _directions_ batchItem object can accept any of the supported _directions_ [URI parameters](https://docs.microsoft.com/en-us/rest/api/maps/route/directions#uri-parameters) except query.\n\n\nThe batch should contain at least **1** query.\n\n\n### Batch Response Model\nThe batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types:\n\n - [`DirectionsResponse`](https://docs.microsoft.com/en-us/rest/api/maps/route/directions#directionsresponse) - If the query completed successfully.\n\n - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.\n\n\n",
"operationId": "Route_PostDirectionsBatch",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"x-ms-client-name": "Route_PostRouteDirectionsBatch",
"x-ms-examples": {
"Successfully retrieve the status for the route directions batch request": {
"$ref": "./examples/PostRouteDirectionsBatch.json"
}
},
"parameters": [
{
"$ref": "../../../Common/preview/1.0/common.json#/parameters/ClientId"
},
{
"$ref": "#/parameters/ApiVersion"
},
{
"name": "routeDirectionsBatchRequest",
"in": "body",
"description": "The list of route directions queries/requests to process. The list can contain a max of 100 queries for sync version and must contain at least 1 query.",
"required": true,
"schema": {
"$ref": "#/definitions/DirectionsBatchRequestBody"
}
}
],
"responses": {
"200": {
"description": "Batch request successfully processed. The response body contains all the batch results.",
"schema": {
"$ref": "#/definitions/DirectionsBatchResponse"
}
},
"207": {
"description": "Multi-Status. One or more batch items could not be processed and return different status code.",
"schema": {
"$ref": "#/definitions/DirectionsBatchResponse"
}
},
"default": {
"description": "An unexpected error occurred.",
"schema": {
"$ref": "../../../Common/preview/1.0/common.json#/definitions/MapsErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "Error code of the error that occurred."
}
},
"x-ms-error-response": true
}
}
}
}
},
"definitions": {
"DirectionsRequest": {
"description": "This object is the request body.",
"type": "object",
"required": [
"type",
"features"
],
"properties": {
"type": {
"$ref": "#/definitions/FeatureTypeEnum"
},
"features": {
"type": "array",
"description": "You can have a maximum of 25 waypoints, and a maximum of 10 viaWaypoints between each set of waypoints. The start and end points of the route cannot be viaWaypoints.",
"minimum": 2,
"items": {
"$ref": "#/definitions/InputWaypointFeaturesItem"
}
},
"travelMode": {
"description": "The mode of travel for the requested route.",
"type": "string",
"default": "driving",
"enum": [
"driving",
"truck",
"walking"
],
"x-ms-enum": {
"name": "TravelMode",
"modelAsString": true,
"values": [
{
"value": "driving",
"description": "The returned routes are optimized for common driving scenarios."
},
{
"value": "truck",
"description": "The returned routes are optimized for trucks."
},
{
"value": "walking",
"description": "The returned routes are optimized for pedestrians, including the use of sidewalks."
}
]
}
},
"departAt": {
"description": "The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format defined by (RFC 3339, section 5.6)[https://www.rfc-editor.org/rfc/rfc3339#section-5.6]. For example, `2022-06-01T09:30:00.000-07:00`",
"type": "string",
"format": "date-time"
},
"arriveAt": {
"description": "The date and time of arrival at the destination point. It must be specified as a dateTime format defined by (RFC 3339, section 5.6)[https://www.rfc-editor.org/rfc/rfc3339#section-5.6]. When a time zone offset is not specified it will be assumed to be that of the destination point. The arriveAt value must be in the future. The arriveAt parameter cannot be used in conjunction with departAt.",
"type": "string",
"format": "date-time"
},
"optimizeRoute": {
"description": "Specifies what parameters to use to optimize the route.",
"type": "string",
"default": "fastestWithoutTraffic",
"enum": [
"shortest",
"fastestWithoutTraffic",
"fastestAvoidClosureWithoutTraffic",
"fastestWithTraffic"
],
"x-ms-enum": {
"name": "OptimizeRoute",
"modelAsString": true,
"values": [
{
"value": "shortest",
"name": "Shortest",
"description": "The route is calculated to minimize the distance. Traffic information is not used."
},
{
"value": "fastestWithoutTraffic",
"name": "FastestWithoutTraffic",
"description": "The route is calculated to minimize the time. Traffic information is not used."
},
{
"value": "fastestAvoidClosureWithoutTraffic",
"name": "FastestAvoidClosureWithoutTraffic",
"description": "The route is calculated to minimize the time and avoid road closures. Traffic information except road closures are not used in the calculation."
},
{
"value": "fastestWithTraffic",
"name": "FastestWithTraffic",
"description": "The route is calculated to minimize the time and uses current traffic information."
}
]
}
},
"optimizeWaypointOrder": {
"description": "Re-order the route waypoints using a fast heuristic algorithm to reduce the route length. Notice that origin and destination are excluded from the optimized waypoint indices.Possible values are true or false. `Note`:This parameter is only available for the driving and Truck mode.",
"type": "boolean",
"default": false
},
"avoid": {
"description": "Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple items, for example, '\"avoid\": [\"highways\", \"tollRoads\"]'. Noted that tunnels are not supported for driving and walking mode.",
"type": "array",
"items": {
"type": "string",
"enum": [
"highways",
"tollRoads",
"ferries",
"minimizeHighways",
"minimizeTollRoads",
"tunnels",
"borderCrossings"
],
"x-ms-enum": {
"name": "Avoid",
"modelAsString": true,
"values": [
{
"value": "highways",
"description": "Avoids the use of highways in the route. `Note`:The parameter is available only for driving and walking mode."
},
{
"value": "tollRoads",
"description": "Avoids the use of toll roads in the route"
},
{
"value": "ferries",
"description": "Avoids the use of ferries in the route."
},
{
"value": "minimizeHighways",
"description": "Minimizes (tries to avoid) the use of highways in the route. Note: If you specify more than one option for a road type, then the most restrictive option is used. For example, if you set the avoid parameter to both highways and minimizeHighways, the highways option is used and all highways are avoided. `Note`:The parameter is available only for driving and walking mode"
},
{
"value": "minimizeTollRoads",
"description": "Minimizes (tries to avoid) the use of toll roads in the route. Note: If you specify more than one option for a road type, then the most restrictive option is used. For example, if you set the avoid parameter to both tollRoads and minimizeTollRoads, the tollRoads option is used and all toll roads are avoided."
},
{
"value": "tunnels",
"description": "Avoids the use of tunnels in the route. `Note`:The parameter is available only for truck mode"
},
{
"value": "borderCrossings",
"description": "Avoids crossing country borders in the route."
}
]
}
}
},
"routeOutputOptions": {
"description": "Information of route being returned. Can specify multiple values such as \"routeOutputOptions\": [\"routePath\", \"regionTravelSummary\"].",
"type": "array",
"default": [
"routeSummary"
],
"items": {
"type": "string",
"enum": [
"routeSummary",
"regionTravelSummary",
"routePath",
"itinerary"
],
"x-ms-enum": {
"name": "RouteOutputOption",
"modelAsString": true,
"values": [
{
"value": "routeSummary",
"description": "Include only travel time and distance for the route, and do not provide other information. Only supported for route without waypoints."
},
{
"value": "regionTravelSummary",
"description": "Include travel summary of distance, time, and toll road distance by two entity types: country (e.g. US, Canada) and administrative division or subregion (e.g. “state” in US and “province” in Canada). `Note`:The parameter is available only for driving and walking mode"
},
{
"value": "routePath",
"description": "Include a set of point (latitude and longitude) values that describe the route’s path in the response."
},
{
"value": "itinerary",
"description": "Include detailed directions in the response. Detailed directions are provided as ManeuverPoints and contain details such as written instructions."
}
]
}
}
},
"maxRouteCount": {
"description": "Number of maximal routes to be calculated. Default: 1, minimum: 1 and maximum: 3",
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 3
},
"vehicleSpec": {
"description": "",
"$ref": "#/definitions/VehicleSpec"
}
}
},
"RouteDirectionsResponse": {
"description": "This object is returned from a successful call",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/FeatureCollection"
},
{
"type": "object",
"description": "alternative routes",
"properties": {
"alternativeRoutes": {
"description": "alternative route",
"type": "array",
"items": {
"$ref": "#/definitions/FeatureCollection"
}
}
}
}
]
},
"FeatureCollection": {
"description": "feature collection",
"type": "object",
"properties": {
"type": {
"$ref": "#/definitions/FeatureTypeEnum"
},
"features": {
"$ref": "#/definitions/Features"
},
"nextLink": {
"$ref": "#/definitions/NextLink"
}
}
},
"RegionTravelSummary": {
"description": "Travel summary of distance, time, and toll road distance by two entity types: country (e.g. US, Canada) and administrative division or subregion (e.g. “state” in US and “province” in Canada).",
"type": "object",
"properties": {
"countryRegion": {
"description": "Country region name",
"type": "string",
"readOnly": true
},
"adminDistricts": {
"description": "adminDistrict array",
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/AdminDistrict"
}
}
}
},
"FeatureTypeEnum": {
"type": "string",
"description": "must be FeatureCollection",
"enum": [
"FeatureCollection"
],
"x-ms-enum": {
"name": "FeatureTypeEnum",
"modelAsString": true,
"values": [
{
"value": "FeatureCollection"
}
]
}
},
"FeaturesItemTypeEnum": {
"type": "string",
"description": "must be Feature",
"enum": [
"Feature"
],
"x-ms-enum": {
"name": "FeaturesItemTypeEnum",
"modelAsString": true,
"values": [
{
"value": "Feature"
}
]
}
},
"Bbox": {
"description": "A rectangular area on the earth defined as a bounding box object. The sides of the rectangles are defined by latitude and longitude values. For more information, see Location and Area Types. When you specify this parameter, the geographical area is taken into account when computing the results of a location query.\n\nExample: [lon1, lat1, lon2, lat2]",
"type": "array",
"items": {
"type": "number",
"format": "double"
},
"minItems": 4,
"maxItems": 4
},
"Features": {
"type": "array",
"description": "Features",
"items": {
"$ref": "#/definitions/FeaturesItem"
}
},
"FeaturesItem": {
"type": "object",
"description": "Feature Item",
"allOf": [
{
"type": "object",
"description": "Feature Item",
"properties": {
"type": {
"$ref": "#/definitions/FeaturesItemTypeEnum"
},
"geometry": {
"$ref": "#/definitions/Geometry"
},
"properties": {
"$ref": "#/definitions/FeatureProperties"
},
"bbox": {
"$ref": "#/definitions/Bbox"
}
}
}
]
},
"Geometry": {
"type": "object",
"description": "Geometry",
"properties": {
"type": {
"description": "Geometry type",
"type": "string"
}
},
"discriminator": "type",
"required": [
"type"
]
},
"PointGeometry": {
"type": "object",
"description": "Feature Item",
"x-ms-discriminator-value": "Point",
"allOf": [
{
"$ref": "#/definitions/Geometry"
},
{
"$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonPoint"
}
]
},
"MultiLineStringGeometry": {
"type": "object",
"description": "Feature Item",
"x-ms-discriminator-value": "MultiLineString",
"allOf": [
{
"$ref": "#/definitions/Geometry"
},
{
"$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonMultiLineString"
}
]
},
"InputWaypointFeaturesItem": {
"type": "object",
"description": "Waypoint Feature Item",
"properties": {
"type": {
"$ref": "#/definitions/FeaturesItemTypeEnum"
},
"geometry": {
"$ref": "../../../Common/preview/1.0/common.json#/definitions/GeoJsonPoint"
},
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/InputWaypointProperties"
}
},
"required": [
"type",
"geometry",
"properties"
]
},
"InputWaypointProperties": {
"type": "object",
"description": "Waypoint properties",
"properties": {
"pointIndex": {
"description": "It is used to identify and order the sequence of waypoints in the route.The default value is the `index value` of a features array.",
"format": "int64",
"type": "integer"
},
"pointType": {
"$ref": "#/definitions/InputWaypointTypeEnum"
}
}
},
"WaypointProperties": {
"x-ms-discriminator-value": "Waypoint",
"type": "object",
"description": "Waypoint properties",
"allOf": [
{
"$ref": "#/definitions/FeatureProperties"
},
{
"$ref": "#/definitions/ManeuverPointProperties"
}
]
},
"ManeuverPointProperties": {
"x-ms-discriminator-value": "ManeuverPoint",
"type": "object",
"description": "ManeuverPoint properties",
"allOf": [
{
"$ref": "#/definitions/FeatureProperties"
},
{
"description": "ManeuverPoint Properties",
"type": "object",
"properties": {
"legPointIndex": {
"$ref": "#/definitions/LegPointIndex"
},
"compassDirection": {
"description": "The direction of travel associated with a maneuver on a route, such as south or southwest.",
"type": "string",
"readOnly": true
},
"steps": {
"description": "steps between two consecutive maneuver points",
"type": "array",
"items": {
"$ref": "#/definitions/Step"
}
},
"instruction": {
"$ref": "#/definitions/Instruction"
},
"sideOfStreet": {
"$ref": "#/definitions/SideOfStreetEnum"
},
"signs": {
"description": "Signage text for the route. There may be more than one sign value",
"type": "array",
"readOnly": true,
"items": {
"type": "string"
}
},
"towardsRoadName": {
"description": "The name of the street that the route goes towards in the first ManeuverPoint.",
"type": "string",
"readOnly": true
},
"exitIdentifier": {
"description": "The name or number of the exit associated with this route step.",
"type": "string",
"readOnly": true
},
"distanceInMeters": {
"description": "The physical distance in meters covered by this route step.",
"type": "number",
"readOnly": true
},
"durationInSeconds": {
"description": "The time that it takes, in seconds, to travel a corresponding TravelDistance.",
"format": "int64",
"type": "integer",
"readOnly": true
}
}
}
]
},
"ViaWaypointProperties": {
"x-ms-discriminator-value": "ViaWaypoint",
"type": "object",
"description": "ViaWaypoint properties",
"allOf": [
{
"$ref": "#/definitions/FeatureProperties"
},
{
"description": "ViaWaypoint Properties",
"type": "object",
"properties": {
"names": {
"description": "A street, highway or intersection where the maneuver occurs. If the maneuver is complex, there may be more than one name field in the details collection. The name field may also have no value. This can occur if the name is not known or if a street, highway or intersection does not have a name.",
"type": "array",
"readOnly": true,
"items": {
"type": "string"
}
},
"legPointIndex": {
"$ref": "#/definitions/LegPointIndex"
}
}
}
]
},
"RoutePathProperties": {
"x-ms-discriminator-value": "RoutePath",
"type": "object",
"description": "RoutePath properties",
"allOf": [
{
"$ref": "#/definitions/FeatureProperties"
},
{
"type": "object",
"description": "RoutePath properties",
"properties": {
"resourceId": {
"description": "A unique ID for the resource.",
"type": "string",
"readOnly": true
},
"distanceInMeters": {
"description": "The physical distance in meters covered by the entire route.",
"type": "number",
"readOnly": true
},
"durationInSeconds": {
"description": "The time that it takes, in seconds, to travel a corresponding TravelDistance.",
"format": "int64",
"type": "integer",
"readOnly": true
},
"durationTrafficInSeconds": {
"description": "The time that it takes, in seconds, to travel a corresponding TravelDistance with current traffic conditions. This value is always provided for the complete route and does not depend on the availability of traffic information.",
"format": "int64",
"type": "integer",
"readOnly": true
},
"trafficDataUsed": {
"$ref": "#/definitions/TrafficDataUsedEnum"
},
"trafficCongestion": {
"$ref": "#/definitions/TrafficCongestionEnum"
},
"legs": {
"description": "An array of route legs. Check RouteLeg object description for more information.",
"type": "array",
"items": {
"$ref": "#/definitions/Leg"
}
}
}
}
]
},
"FeatureProperties": {
"type": "object",
"description": "Feature properties",
"properties": {
"type": {
"$ref": "#/definitions/FeaturePropertiesTypeEnum"
}
},
"discriminator": "type",
"required": [
"type"
]
},
"FeaturePropertiesTypeEnum": {
"description": "Output type",
"type": "string",
"readOnly": true,
"enum": [
"ManeuverPoint",
"Waypoint",
"ViaWaypoint",
"RoutePath"
],
"x-ms-enum": {
"name": "PropertiesTypeEnum",
"modelAsString": true,
"values": [
{
"value": "ManeuverPoint",
"description": "A maneuverPoint is a specific point on a route or trip where a change in direction or mode of transportation is required or recommended."
},
{
"value": "Waypoint",
"description": "A waypoint is a specific location or point along a route or trip that serves as a reference or stopping point."
},
{
"value": "ViaWaypoint",
"description": "A viaWaypoint is specific waypoint that must be passed through or visited along a route or trip."
},
{
"value": "RoutePath",
"description": "A routePath is a line that represents the path of a route or trip."
}
]
}
},
"InputWaypointTypeEnum": {
"description": "waypoint type",
"type": "string",
"default": "waypoint",
"enum": [
"waypoint",
"viaWaypoint"
],
"x-ms-enum": {
"name": "InputWaypointTypeEnum",
"modelAsString": true,
"values": [
{
"value": "waypoint",
"description": "A waypoint is a specific location or point along a route or trip that serves as a reference or stopping point."
},
{
"value": "viaWaypoint",
"description": "A viaWaypoint is specific waypoint that must be passed through or visited along a route or trip."
}
]
}
},
"AdminDistrict": {
"description": "The country subdivision portion of an address.",
"type": "object",
"properties": {
"longName": {
"description": "The long name of an address, such as ",
"type": "string",
"readOnly": true
},
"distanceInMeters": {
"description": "Length In Meters property",
"type": "number",
"readOnly": true
},
"durationInSeconds": {
"description": "Estimated travel time in seconds property that includes the delay due to real-time traffic. Note that even when traffic=false travelTimeInSeconds still includes the delay due to traffic. If DepartAt is in the future, travel time is calculated using time-dependent historic traffic data.",
"format": "int64",
"type": "integer",
"readOnly": true
}
}
},
"Leg": {
"x-ms-client-name": "RouteLeg",
"description": "Information about a section of a route between two waypoints. For more information about the fields contained ina routeLeg.",
"type": "object",
"properties": {
"description": {
"description": "A short description of the route.",
"type": "string",
"readOnly": true
},
"pathLegRange": {
"$ref": "#/definitions/PathLegRange"
},
"distanceInMeters": {
"description": "The physical distance in meters covered by a route leg.",
"type": "number",
"readOnly": true
},
"durationInSeconds": {
"description": "The time that it takes, in seconds, to travel a corresponding TravelDistance.",
"format": "int64",
"type": "integer",
"readOnly": true
},
"subLegs": {
"description": "Information about a segments of the route leg defined by the route leg waypoints and any intermediate via-waypoints. For example, if the route leg has two via-waypoints in addition to start and end waypoints, there would be three (3) route sub-legs.",
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/SubLeg"
}
},
"regionTravelSummary": {
"description": "Include travel summary of distance, time, and toll road distance by two entity types: country (e.g. US, Canada) and administrative division or subregion (e.g. “state” in US and “province” in Canada).",
"$ref": "#/definitions/RegionTravelSummary"
}
}
},
"SubLeg": {
"x-ms-client-name": "RouteSubLeg",
"description": "Information about a segments of the route leg defined by the route leg waypoints and any intermediate via-waypoints. For example, if the route leg has two via-waypoints in addition to start and end waypoints, there would be three (3) route sub-legs.",
"type": "object",
"properties": {
"pathLegRange": {
"$ref": "#/definitions/PathLegRange"
},
"distanceInMeters": {
"description": "The physical distance in meters covered by the sub-leg",
"type": "number",
"readOnly": true
},
"durationInSeconds": {
"description": "The time, in seconds, that it takes to travel the corresponding travelDistance by the sub-leg",
"format": "int64",
"type": "integer",
"readOnly": true
}
}
},
"PathLegRange": {
"description": "Refers to the range covered by a specific leg of a route or path.",
"type": "object",
"properties": {
"range": {
"description": "Refers to the range covered by a specific leg of a route or path.",
"type": "array",
"readOnly": true,
"maximum": 2,
"maxItems": 2,
"items": {
"format": "int64",
"type": "integer"
}
},
"legIndex": {
"$ref": "#/definitions/LegIndex"
}
}
},
"LegPointIndex": {
"description": "Refers to the index of a point within a specific leg of a route.",
"type": "object",
"properties": {
"legIndex": {
"$ref": "#/definitions/LegIndex"
},
"pointIndex": {
"description": "index of a point within a specific leg",
"format": "int64",
"type": "integer",
"readOnly": true
}
}
},
"LegIndex": {
"description": "The route leg index is a sequential number assigned to each leg of the route to help identify and distinguish between different segments of the route.",
"readOnly": true,
"format": "int64",
"type": "integer"
},
"Hint": {
"description": "Additional information that may be helpful in following a route. In addition to the hint text, this element has an attribute hintType that specifies what the hint refers to, such as “NextIntersection.” Hint is an optional element.",
"type": "object",
"properties": {
"hintType": {
"description": "hint type",
"type": "string",
"readOnly": true
},
"text": {
"description": "hint text",
"type": "string",
"readOnly": true
}
}
},
"Step": {
"x-ms-client-name": "RouteStep",
"description": "A route leg contain turn-by-turn instructions. A step refers to a range of a route between two consecutive maneuverPoint.",
"type": "object",
"properties": {
"compassDegrees": {
"description": "The direction in degrees.",
"readOnly": true,
"type": "number"
},
"maneuverType": {
"readOnly": true,
"$ref": "#/definitions/ManeuverTypeEnum"
},
"names": {
"description": "A street, highway or intersection where the maneuver occurs. If the maneuver is complex, there may be more than one name field in the details collection. The name field may also have no value. This can occur if the name is not known or if a street, highway or intersection does not have a name.",
"type": "array",
"readOnly": true,
"items": {
"type": "string"
}
},
"pathLegRange": {
"$ref": "#/definitions/PathLegRange"
},
"roadType": {
"readOnly": true,
"$ref": "#/definitions/RoadTypeEnum"
}
}
},
"ManeuverTypeEnum": {
"description": "The type of maneuver described by this detail collection. The ManeuverType in A detail collection can provide information for a portion of the maneuver described by the maneuverType attribute of the corresponding Instruction. For example the maneuverType attribute of an Instruction may specify TurnLeftThenTurnRight as the maneuver while the associated detail items may specify specifics about the TurnLeft and TurnRight maneuvers.",
"type": "string",
"readOnly": true,
"enum": [