-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
PostDataForPolyline.json
106 lines (106 loc) · 2.62 KB
/
PostDataForPolyline.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
{
"parameters": {
"format": "json",
"api-version": "1.0",
"linesRequestBody": [
{
"lon": -121.66853362143818,
"lat": 46.84646479863713
},
{
"lon": -121.67853362143818,
"lat": 46.85646479863713
}
],
"subscription-key": "[subscription-key]",
"samples": 5
},
"responses": {
"200": {
"body": {
"data": [
{
"coordinate": {
"latitude": 46.846464798637129,
"longitude": -121.66853362143819
},
"elevationInMeter": 2298.6581875651746
},
{
"coordinate": {
"latitude": 46.848964798637127,
"longitude": -121.67103362143818
},
"elevationInMeter": 2466.4058976953679
},
{
"coordinate": {
"latitude": 46.851464798637124,
"longitude": -121.67353362143818
},
"elevationInMeter": 2504.8855800948654
},
{
"coordinate": {
"latitude": 46.853964798637129,
"longitude": -121.67603362143818
},
"elevationInMeter": 2477.8929009638578
},
{
"coordinate": {
"latitude": 46.856464798637127,
"longitude": -121.67853362143818
},
"elevationInMeter": 2394.5290079897059
}
]
}
},
"400": {
"headers": {},
"body": {
"error": {
"code": "400 BadRequest",
"message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
}
}
},
"401": {
"headers": {},
"body": {
"error": {
"code": "401 Unauthorized",
"message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription."
}
}
},
"403": {
"headers": {},
"body": {
"error": {
"code": "403 Forbidden",
"message": "Permission, capacity, or authentication issues."
}
}
},
"404": {
"headers": {},
"body": {
"error": {
"code": "404 NotFound",
"message": "Not Found: the requested resource could not be found, but it may be available again in the future."
}
}
},
"500": {
"headers": {},
"body": {
"error": {
"code": "500 InternalServerError",
"message": "An error occurred while processing the request. Please try again later."
}
}
}
}
}