File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,9 @@ def main(api_key):
20
20
if isinstance (response , dict ) and 'errors' in response .keys ():
21
21
print ('. ' .join (response ['errors' ]))
22
22
else :
23
- print ('Optimization Problem ID: {}' .format (
24
- response ['optimization_problem_id' ]
23
+ print ('Optimization Problem ID: {} - Status: {} ' .format (
24
+ response ['optimization_problem_id' ], response [ 'status' ]
25
25
))
26
- print ('Route ID: {}' .format (response ['route_id' ]))
27
- for i , address in enumerate (response ['addresses' ]):
28
- print ('Address #{}' .format (i + 1 ))
29
- print ('\t Address: {0}' .format (address ['address' ]))
30
- print ('\t Route Destination ID: {0}' .format (
31
- address ['route_destination_id' ]
32
- ))
33
26
34
27
35
28
if __name__ == '__main__' :
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ def merge_routes(self, **kwargs):
288
288
if self .check_required_params (kwargs , ['route_ids' ]):
289
289
response = self .api ._request_post (MERGE_ROUTES_HOST ,
290
290
self .params ,
291
- json = kwargs )
291
+ data = kwargs )
292
292
return response .json ()
293
293
294
294
else :
You can’t perform that action at this time.
0 commit comments