Post an analysis reqeust on a contraction hierarchy
https://localhost:7011/chrest/v1/analysis
Request
There are no request parameters for this operation.
- application/json
object
-
alternativePathsRequest: object
AlternativePathsRequest
-
chName(required): string
name of generated contraction hierarchy networkExample:
sample
-
constraint: array
constraint
constraint for analysis
-
costIndex: integer
index of link cost columnsExample:
1
-
costMatrixRequest: object
CostMatrixRequest
-
multiStopShortestPathRequest: object
MultiStopShortestPathRequest
-
secondaryCostRequest: object
SecondaryCostRequest
-
shortestPathRequest: object
ShortestPathRequest
-
tspRequest: object
TspRequest
-
withinCostPolygonRequest: object
WithinCostPolygonRequest
object
-
endPoints: object
PointOnNets
-
geometry: boolean
return geoemtry information in reponse or notExample:
true
-
k: integer
return less than k number of alternative path in response
-
logicalPath: boolean
return logical path information(logical node id array and logical link id array) in reponse or notExample:
true
-
maxCost: number
only return paths that costs are less than maxCost in response
-
maxSimilarity: number
only return paths that similarity are less than maxSimilarity in response
-
startPoints: object
PointOnNets
object
-
geometry: boolean
return geoemtry information in reponse or notExample:
true
-
logicalPath: boolean
return logical path information(logical node id array and logical link id array) in reponse or notExample:
true
-
waypoints: array
waypoints
array of multiple stops in point on net
object
-
cost: number
-
endIndex: integer
-
endPercentage: number
-
linkIds: array
linkIds
array of logical sub path link id in order
-
nodeIds: array
nodeIds
array of logical sub path node id in order
-
startIndex: integer
-
startPercentage: number
object
-
endPoints: object
PointOnNets
-
geometry: boolean
return geoemtry information in reponse or notExample:
true
-
logicalPath: boolean
return logical path information(logical node id array and logical link id array) in reponse or notExample:
true
-
startPoints: object
PointOnNets
object
-
geometry: boolean
return geoemtry information in reponse or notExample:
true
-
logicalPath: boolean
return logical path information(logical node id array and logical link id array) in reponse or notExample:
true
-
tourFlag: string
Allowed Values:
[ "CLOSED", "OPEN", "OPEN_FIXED_START", "OPEN_FIXED_END", "OPEN_FIXED_START_END" ]
mode of TSP analysis -
tspPoints: array
tspPoints
array of point on net
object
-
centerPoints: object
PointOnNets
-
cost: number
Example:
400
-
direction: string
Allowed Values:
[ "FORWARD", "BACKWARD" ]
Direction from centerpoints. FORWARD indicates that the center points are starting points. BACKWARD indicates the center points are destinations.
object
-
pointOnNet: array
pointOnNet
array of PointOnNet
object
-
linkId: integer
Example:
-24579055
-
nodeId: integer
Example:
48523598
-
percentage: number
Example:
0.5
object
-
booleanValue: boolean
Example:
true
-
byteValue: integer
Example:
1
-
costIndex: integer
index of Contraction Hierarchy cost column (0 is the first index of cost clumn)Example:
1
-
floatValue: number
Example:
0.5
-
intValue: integer
Example:
1
-
linkCost: integer
cost of linkExample:
500
-
numberComparisonOperator: string
Allowed Values:
[ "==", "!=", ">", ">=", "<", "<=" ]
Example:==
-
permittedLinks: array
permittedLinks
link ids of permitted links
-
permittedZone: array
permittedZone
array of permitted zone in GeoJson polygons
-
prohibitedLinks: array
prohibitedLinks
link ids of prohibitied links
-
prohibitedZone: array
prohibitedZone
array of prohibited zone in GeoJson polygons
-
shortValue: integer
Example:
1
-
stringComparisonOperator: string
Allowed Values:
[ "EQUALS", "EQUALS_IGNORE_CASE", "!EQUALS", "!EQUALS_IGNORE_CASE", "CONTAINS", "CONTAINS_IGNORE_CASE", "!CONTAINS", "!CONTAINS_IGNORE_CASE", "SUBSTRING_OF", "SUBSTRING_OF_IGNORE_CASE", "!SUBSTRING_OF", "!SUBSTRING_OF_IGNORE_CASE", "STARTS_WITH", "STARTS_WITH_IGNORE_CASE", "!STARTS_WITH", "!STARTS_WITH_IGNORE_CASE", "ENDS_WITH", "ENDS_WITH_IGNORE_CASE", "!ENDS_WITH", "!ENDS_WITH_IGNORE_CASE", "REGEX" ]
Example:EQUALS
-
stringValue: string
Example:
Clayton
-
userDataIndex: integer
index of user data of one certain typeExample:
0
object
-
coordinates:
coordinates
-
type: string
Allowed Values:
[ "LineString", "Polygon" ]
Example:LineString
array
[
[
30,
10
],
[
10,
30
],
[
40,
40
]
]
array
[
[
[
30,
10
],
[
40,
40
],
[
20,
40
],
[
10,
20
],
[
30,
10
]
]
]
Response
- application/json
200 Response
object
-
alternativePathsResponse: object
AlternativePathsResponse
-
costMatrixResponse: object
CostMatrixResponse
-
error: string
Example:
Invalid input request.
-
multiStopShortestPathResponse: object
MultiStopShortestPathResponse
-
secondaryCostResponse: object
SecondaryCostResponse
-
shortestPathResponse: object
ShortestPathResponse
-
tspResponse: object
TspResponse
-
unit: string
Allowed Values:
[ "meter", "second" ]
-
withinCostPolygonResponse: object
WithinCostPolygonResponse
object
-
error: string
-
secondaryCost: array
secondaryCost
array of costType
object
-
cost: number
-
endIndex: integer
-
endPercentage: number
-
error: string
-
geometry: object
Geometry
-
linkIds: array
linkIds
array of logical sub path link id in order
-
nodeIds: array
nodeIds
array of logical sub path node id in order
-
startIndex: integer
-
startPercentage: number
object
-
error: string
-
order: array
order
visiting order of input tspPoint
-
shortestPath: array
shortestPath
object
-
centerPointCoordinates: array
centerPointCoordinates
array of coordinates of all center points
-
error: string
-
geometry: object
Geometry
array
[
[
0,
1835.3,
739.5,
985.4
],
[
2516.9,
0,
3021.5,
2908.5
],
[
532.1,
2111.8,
0,
1214.1
],
[
7234,
8631.4,
7276.2,
0
]
]
object
-
cost: number
Example:
61.3
-
unit: string
Example:
second
object
-
coordinates:
coordinates
-
type: string
Allowed Values:
[ "LineString", "Polygon" ]
Example:LineString
array
[
[
30,
10
],
[
10,
30
],
[
40,
40
]
]
array
[
[
[
30,
10
],
[
40,
40
],
[
20,
40
],
[
10,
20
],
[
30,
10
]
]
]
array
[
0,
1,
2,
0
]
array
[
-73.9918359600007,
40.66287147999933
]
Examples
The following example shows how to perform network analysis on a contraction hierarchy network by submitting a POST request on the REST resource using cURL. Depending on the operationspecified in the request body, the analysis job can be shortest path, multi stop shortest path, cost matrix, TSP, alternative paths, secondary cost or within cost polygon.
curl -v -X POST "https://localhost:8011/chrest/v1/analysis" -H "Content-Type: application/json" -d @request_body.json
Example of Request Body
The following example shows how to perform a shortest path analysis in the request body.
{"chName":"sample","shortestPathRequest":{"startPoints" : { "pointOnNet" : [ { "linkId" : 238135, "percentage" : 0.28 } ] }, "endPoints" : { "pointOnNet" : [ { "linkId" : 261315, "percentage" : 0.93 }] }, "geometry":false}}
The following example shows how to perform a shortest path analysis with string link user data constraint over the second cost contraction hierarchy in the request body.
{"chName":"sample", "costIndex": 1, "constraint":[ { "userDataIndex" : 0, "stringComparisonOperator" : "!CONTAINS_IGNORE_CASE", "stringValue" : "Clayton" } ], "shortestPathRequest":{"startPoints" : { "pointOnNet" : [ { "linkId" : 238135, "percentage" : 0.28 } ] }, "endPoints" : { "pointOnNet" : [ { "linkId" : 261315, "percentage" : 0.93 }] }, "geometry":false}}
The following example shows how to perform a shortest path analysis with prohibited zone constraint over the second cost contraction hierarchy in the request body.
{"chName":"sample", "costIndex": 1, "constraint":[ { "prohibitedZone" : [ { "type":"Polygon", "coordinates":[[[-122.45771,37.76709],[-122.45771,37.75653],[-122.43655,37.75653],[-122.43655,37.76709],[-122.45771,37.76709]]] }, { "type":"Polygon", "coordinates":[[[-122.46895,37.78009],[-122.46895,37.77632],[-122.46109,37.77632],[-122.46109,37.78009],[-122.46895,37.78009]]] } ] } ], "shortestPathRequest":{"startPoints" : { "pointOnNet" : [ { "linkId" : 238135, "percentage" : 0.28 } ] }, "endPoints" : { "pointOnNet" : [ { "linkId" : 261315, "percentage" : 0.93 }] }, "geometry":false}}
The following example shows how to perform a multi stop shortest path analysis in the request body.
{"chName":"sample","multiStopShortestPathRequest":{"waypoints" : [ {"pointOnNet" : [ {"linkId":266427,"percentage":0.5}]}, {"pointOnNet" : [ {"linkId":238135,"percentage":0.7}]}, {"pointOnNet" : [ {"linkId":106841,"percentage":0.1}]} ], "geometry":false}}
The following example shows how to perform a cost matrix analysis in the request body.
{"chName":"sample","costMatrixRequest":{"startPoints" : [ {"pointOnNet" : [ {"linkId":266427,"percentage":0.3}]}, {"pointOnNet" : [ {"linkId":238135,"percentage":0.2}]}, {"pointOnNet" : [ {"linkId":106841,"percentage":0.7}]}, {"pointOnNet" : [ {"linkId":261315,"percentage":0.5}]}],"endPoints" : [ {"pointOnNet" : [ {"linkId":266427,"percentage":0.3}]}, {"pointOnNet" : [ {"linkId":238135,"percentage":0.2}]}, {"pointOnNet" : [ {"linkId":106841,"percentage":0.7}]}, {"pointOnNet" : [ {"linkId":261315,"percentage":0.5}]}]}}
The following example shows how to perform a TSP analysis in the request body.
{"chName":"sample","tspRequest":{"geometry":false,"tourFlag":"CLOSED","tspPoints" : [ {"pointOnNet" : [ {"linkId":266427,"percentage":0.5} ]}, {"pointOnNet" : [ {"linkId":238135,"percentage":0.7} ]}, {"pointOnNet" : [ {"linkId":106841,"percentage":0.1} ]} ]}}
The following example shows how to perform an alternative paths analysis in the request body.
{"chName":"sample","alternativePathsRequest":{"startPoints" : { "pointOnNet" : [ { "linkId":238135, "percentage":0.28 }] }, "endPoints" : { "pointOnNet" : [ { "linkId":261315, "percentage":0.93 }] }, "k":4,"maxCost":10000,"maxSimilarity":0.5,"geometry":false}}
The following example shows how to perform a secondary cost query in the request body.
{"chName":"sample","secondaryCostRequest" : {"startIndex" : 0,"startPercentage" : 0.28,"endIndex" : 43,"endPercentage" : 0.93,"cost" : 2906.6,"nodeIds" : [ 42427254, 42427256, 42440356, 3350498747, 42452620, 42457292, 42444271, 42440270, 42440271, 673008453, 42440278, 42440280, 42440282, 42440284, 42440287, 42428385, 42440290, 42453943,42453952, 42430004, 42429562, 42449597, 42431611, 42445356, 42445357, 42436322, 42430571, 42430529, 42429833, 42436326, 42436327, 42436330, 42436333, 42436335, 42436336, 42424610, 1104165608, 42436308,42424408, 42436340, 42436014, 4142105822, 42424619, 42424630, 42423514 ],"linkIds" : [ 238135, 69834, 69856, 187992, 39327, 39328, 18867, 189084, 189085, 189086, 189087, 142716, 142717, 142718, 142719, 142720, 193362, 193363, 54588, 54589, 54657, 153376, 68912, 61331,61332, 177603, 177604, 177605, 177606, 177607, 106801, 96723, 96724, 96725, 96726, 65028, 176816, 176817, 65012, 65013, 65014, 65015, 261314, 261315 ]}}
The following example shows how to perform a within cost polygon query in the request body.
{"chName":"sample","withinCostPolygonRequest":{"centerPoints" : { "pointOnNet" : [ { "linkId" : 238135, "percentage" : 0.28 } ] }, "cost":400, "direction":"FORWARD"}}
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK Date: Tue, 14 Jan 2020 18:33:10 GMT Content-Type: application/json; charset=UTF-8
Example of Response Body
The following example shows the contents of the response body in JSON format of shoetest path request.
{"shortestPathResponse" : {"cost" : 2906.6,"linkIds" : [ 238135, 69834, 69856, 187992, 39327, 39328, 18867, 189084, 189085, 189086, 189087, 142716, 142717, 142718, 142719, 142720, 193362, 193363, 54588, 54589, 54657, 153376, 68912, 61331,61332, 177603, 177604, 177605, 177606, 177607, 106801, 96723, 96724, 96725, 96726, 65028, 176816, 176817, 65012, 65013, 65014, 65015, 261314, 261315 ],"nodeIds" : [ 42427254, 42427256, 42440356, 3350498747, 42452620, 42457292, 42444271, 42440270, 42440271, 673008453, 42440278, 42440280, 42440282, 42440284, 42440287, 42428385, 42440290, 42453943,42453952, 42430004, 42429562, 42449597, 42431611, 42445356, 42445357, 42436322, 42430571, 42430529, 42429833, 42436326, 42436327, 42436330, 42436333, 42436335, 42436336, 42424610, 1104165608, 42436308,42424408, 42436340, 42436014, 4142105822, 42424619, 42424630, 42423514 ],"startIndex" : 0,"startPercentage" : 0.28,"endIndex" : 43,"endPercentage" : 0.93},"unit" : "meter"}
The following example shows the contents of the response body in JSON format of multi stop shortest path request.
{"multiStopShortestPathResponse" : {"shortestPath" : [ {"cost" : 1866.8,"linkIds" : [ 266427, 65042, 65043, 65044, 65045, 65046, 65047, 120252, 120253, 171960, 249986, 84903, 245429, 245428, 145039, 145040, 136666, 273041, 136680, 136681, 136682, 183653, 183654, 140917,140918, 239060, 239061, 239122, 238135 ],"nodeIds" : [ 42427316, 42440815, 42445484, 42445481, 42445479, 42445474, 42445469, 42445466, 42430535, 42427278, 272195272, 370705004, 2821304146, 4207802394, 2821304145, 1272562931, 42427236,42427239, 42427242, 42457311, 42430848, 42440280, 42456583, 42440345, 42433330, 42440347, 42440350, 42440353, 42427254, 42427256 ],"startIndex" : 0,"startPercentage" : 0.5,"endIndex" : 28,"endPercentage" : 0.7}, {"cost" : 2927.6,"linkIds" : [ 238135, 69834, 69856, 187992, 39327, 39328, 18867, 189084, 189085, 189086, 189087, 142716, 142717, 142718, 142719, 142720, 193362, 193363, 54588, 54589, 54657, 153376, 68912, 68913,68914, 68915, 68916, 68917, 267738, 267739, 267740, 21173, 64994, 64995, 106837, 106838, 106839, 106840, 106841 ],"nodeIds" : [ 42427254, 42427256, 42440356, 3350498747, 42452620, 42457292, 42444271, 42440270, 42440271, 673008453, 42440278, 42440280, 42440282, 42440284, 42440287, 42428385, 42440290, 42453943,42453952, 42430004, 42429562, 42449597, 42431611, 42445356, 42430550, 42429830, 42452817, 42448171, 4143851142, 42430115, 42430118, 42430122, 42430126, 42440829, 42452026, 42433574, 42452040, 42449570,42428436, 42452048 ],"startIndex" : 0,"startPercentage" : 0.7,"endIndex" : 38,"endPercentage" : 0.1} ]},"unit" : "meter"}
The following example shows the contents of the response body in JSON format of cost matrix request.
{"costMatrixResponse" : {"costMatrix" : [ [ 0.0, 1835.3, 739.5, 985.4 ], [ 2516.9, 0.0, 3021.5, 2908.5 ], [ 532.1, 2111.8, 0.0, 1214.1 ], [ 7234.0, 8631.4, 7276.2, 0.0 ] ]},"unit" : "meter"}
The following example shows the contents of the response body in JSON format of cost TSP request.
{"tspResponse" : {"order" : [ 0, 2, 1, 0 ],"shortestPath" : [ {"cost" : 677.1,"linkIds" : [ 266427, 266428, 243579, 243580, 243581, 189839, 106839, 106840, 106841 ],"nodeIds" : [ 42427316, 42440815, 591995273, 42428433, 42440820, 42440823, 42452040, 42449570, 42428436, 42452048 ],"startIndex" : 0,"startPercentage" : 0.5,"endIndex" : 8,"endPercentage" : 0.1}, {"cost" : 2205.7,"linkIds" : [ 106841, 106842, 65040, 65041, 65042, 65043, 65044, 65045, 65046, 65047, 120252, 120253, 171960, 249986, 84903, 245429, 245428, 145039, 145040, 136666, 273041, 136680, 136681, 136682,183653, 183654, 140917, 140918, 239060, 239061, 239122, 238135 ],"nodeIds" : [ 42428436, 42452048, 42445489, 42439580, 42440815, 42445484, 42445481, 42445479, 42445474, 42445469, 42445466, 42430535, 42427278, 272195272, 370705004, 2821304146, 4207802394, 2821304145,1272562931, 42427236, 42427239, 42427242, 42457311, 42430848, 42440280, 42456583, 42440345, 42433330, 42440347, 42440350, 42440353, 42427254, 42427256 ],"startIndex" : 0,"startPercentage" : 0.1,"endIndex" : 31,"endPercentage" : 0.7}, {"cost" : 2485.5,"linkIds" : [ 238135, 69834, 69856, 69857, 69858, 69859, 162438, 162439, 162440, 162441, 162442, 189127, 187872, 151596, 191849, 191850, 191851, 191852, 191853, 212498, 192902, 192903, 192904, 269840,4401, 4403, 4404, 4402, 174674, 266425, 266426, 266427 ],"nodeIds" : [ 42427254, 42427256, 42440356, 3350498747, 42433218, 42433243, 42438476, 278609760, 42444108, 1538237325, 42437135, 588455857, 588455858, 42452556, 42437465, 42448430, 42437755, 42435916,42433539, 42453691, 1773066054, 42437564, 541467364, 4202950100, 2481865390, 4202984490, 42440804, 4202984491, 42432246, 42435451, 42440810, 42427316, 42440815 ],"startIndex" : 0,"startPercentage" : 0.7,"endIndex" : 31,"endPercentage" : 0.5} ]},"unit" : "meter"}
The following example shows the contents of the response body in JSON format of cost alternative paths request.
{"alternativePathsResponse" : {"shortestPath" : [ {"cost" : 2906.6,"linkIds" : [ 238135, 69834, 69856, 187992, 39327, 39328, 18867, 189084, 189085, 189086, 189087, 142716, 142717, 142718, 142719, 142720, 193362, 193363, 54588, 54589, 54657, 153376, 68912, 61331,61332, 177603, 177604, 177605, 177606, 177607, 106801, 96723, 96724, 96725, 96726, 65028, 176816, 176817, 65012, 65013, 65014, 65015, 261314, 261315 ],"nodeIds" : [ 42427254, 42427256, 42440356, 3350498747, 42452620, 42457292, 42444271, 42440270, 42440271, 673008453, 42440278, 42440280, 42440282, 42440284, 42440287, 42428385, 42440290, 42453943,42453952, 42430004, 42429562, 42449597, 42431611, 42445356, 42445357, 42436322, 42430571, 42430529, 42429833, 42436326, 42436327, 42436330, 42436333, 42436335, 42436336, 42424610, 1104165608, 42436308,42424408, 42436340, 42436014, 4142105822, 42424619, 42424630, 42423514 ],"startIndex" : 0,"startPercentage" : 0.28,"endIndex" : 43,"endPercentage" : 0.93}, {"cost" : 3500.4,"linkIds" : [ 238135, 69834, 69856, 69857, 69858, 69859, 162438, 162439, 162440, 162441, 162442, 189127, 187872, 151596, 191849, 191850, 191851, 191852, 191853, 212498, 192902, 192903, 192904, 269840,4401, 4403, 4404, 4402, 174674, 266425, 266426, 266427, 266428, 243579, 243580, 243581, 243582, 243583, 243584, 243585, 238101, 267063, 267064, 267065, 44933, 222847, 262049, 60078, 261315 ],"nodeIds" : [ 42427254, 42427256, 42440356, 3350498747, 42433218, 42433243, 42438476, 278609760, 42444108, 1538237325, 42437135, 588455857, 588455858, 42452556, 42437465, 42448430, 42437755, 42435916,42433539, 42453691, 1773066054, 42437564, 541467364, 4202950100, 2481865390, 4202984490, 42440804, 4202984491, 42432246, 42435451, 42440810, 42427316, 42440815, 591995273, 42428433, 42440820, 42440823,42440825, 42433573, 42440829, 4143859873, 3788379733, 42439550, 42440838, 4142105813, 4215665530, 42426089, 42426060, 42424630, 42423514 ],"startIndex" : 0,"startPercentage" : 0.28,"endIndex" : 48,"endPercentage" : 0.93}, {"cost" : 4216.8,"linkIds" : [ 238135, 69834, 69856, 69857, 69858, 69859, 162438, 162439, 190987, 65527, 158770, 268162, 268163, 268164, 120254, 18865, 18866, 18867, 189084, 189085, 189086, 189087, 142716, 142717,142718, 142719, 142720, 193362, 193363, 54743, 54744, 54745, 54746, 166527, 164507, 71481, 44960, 54569, 71466, 71479, 56333, 56334, 56335, 61737, 61738, 61739, 65013, 73453, 164349, 44933, 222847,262049, 60078, 261315 ],"nodeIds" : [ 42427254, 42427256, 42440356, 3350498747, 42433218, 42433243, 42438476, 278609760, 42444108, 205025778, 587988061, 3884569931, 3884569924, 278609934, 42422283, 42433229, 3815141536,42444271, 42440270, 42440271, 673008453, 42440278, 42440280, 42440282, 42440284, 42440287, 42428385, 42440290, 42453943, 42453952, 42454401, 272194254, 42459493, 42453398, 4207143415, 42429570,4215665527, 42449613, 42431626, 42453417, 4207143418, 42436316, 42440918, 4207143421, 42438060, 42436069, 42436340, 42436014, 4629486879, 4142105813, 4215665530, 42426089, 42426060, 42424630, 42423514 ],"startIndex" : 0,"startPercentage" : 0.28,"endIndex" : 53,"endPercentage" : 0.93}, {"cost" : 5675.7,"linkIds" : [ 238135, 69834, 69856, 69857, 69858, 69859, 162438, 162439, 162440, 162441, 162442, 162443, 162444, 162445, 239706, 239707, 239708, 239709, 140872, 140873, 140874, 140875, 214174, 108407,205268, 205269, 205259, 205260, 236593, 236594, 137109, 137110, 224638, 224639, 224640, 224641, 224642, 224643, 224644, 191256, 191239, 129946, 129947, 129948, 172145, 20690, 172143, 172119, 172144,274972, 274973, 274974, 274975, 274976, 65038, 226384, 226385, 226386, 226387, 226388, 226389, 163530, 163531, 44841, 44957, 44958, 44959, 44956, 267065, 44933, 222847, 262049, 60078, 261315 ],"nodeIds" : [ 42427254, 42427256, 42440356, 3350498747, 42433218, 42433243, 42438476, 278609760, 42444108, 1538237325, 42437135, 588455857, 42444116, 42444123, 42444129, 42443928, 42443937, 4581870335,42440449, 479847982, 42437503, 42437770, 42435928, 42433551, 42440408, 42432094, 3630249566, 42435534, 42427340, 42427345, 42427346, 42437067, 42437071, 42437074, 42437078, 42437082, 42437084, 42437096,42437106, 42437108, 42437109, 486868873, 42429645, 42429756, 4202930753, 4539951609, 486869282, 4202930754, 1773076511, 42429752, 42430030, 42430034, 42430038, 42430041, 42430044, 42432165, 42432161,42428438, 42432156, 42432152, 42432148, 42432142, 42436770, 42430143, 42423456, 4602414021, 42452015, 4215665529, 42440838, 4142105813, 4215665530, 42426089, 42426060, 42424630, 42423514 ],"startIndex" : 0,"startPercentage" : 0.28,"endIndex" : 73,"endPercentage" : 0.93} ]},"unit" : "meter"}
The following example shows the contents of the response body in JSON format of secondary cost request.
{"secondaryCostResponse" : {"secondaryCost" : [ {"cost" : 108.2,"unit" : "second"} ]}}
The following example shows the contents of the response body in JSON format of within cost polygon request.
{"withinCostPolygonResponse" : {"centerPointCoordinates" : [ -73.9918359600007, 40.66287147999933 ],"geometry" : {"type":"Polygon","coordinates":[[[-73.98947,40.6617],[-73.99052,40.66416],[-73.99071,40.664],[-73.99109,40.66359],[-73.99393,40.66439],[-73.99452,40.66383],[-73.9951,40.66327],[-73.99459,40.66023],[-73.994,40.66079],[-73.99342,40.66135],[-73.99063,40.66058],[-73.99005,40.66114],[-73.98947,40.6617]]]}}}