Created
July 24, 2018 08:53
-
-
Save afian/ff685efb5105d978768e4e168bd0655b to your computer and use it in GitHub Desktop.
Make a POST request to http://api.routific.com/v1/fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"visits": { | |
"order_1": { | |
"location": { | |
"name": "6800 Cambie", | |
"lat": 49.227107, | |
"lng": -123.1163085 | |
}, | |
"start": "9:00", | |
"end": "12:00", | |
"duration": 10 | |
}, | |
"order_2": { | |
"location": { | |
"name": "3780 Arbutus", | |
"lat": 49.2474624, | |
"lng": -123.1532338 | |
}, | |
"start": "9:00", | |
"end": "12:00", | |
"duration": 10 | |
}, | |
"order_3": { | |
"location": { | |
"name": "800 Robson", | |
"lat": 49.2819229, | |
"lng": -123.1211844 | |
}, | |
"start": "8:00", | |
"end": "9:00", | |
"duration": 10 | |
}, | |
"new_order": { | |
"location": { | |
"name": "555 W Hastings", | |
"lat": 49.284756, | |
"lng": -123.1121501 | |
}, | |
"start": "8:00", | |
"end": "9:00", | |
"duration": 10 | |
} | |
}, | |
"fleet": { | |
"vehicle_1": { | |
"start_location": { | |
"id": "depot", | |
"name": "800 Kingsway", | |
"lat": 49.2553636, | |
"lng": -123.0873365 | |
}, | |
"end_location": { | |
"id": "depot", | |
"name": "800 Kingsway", | |
"lat": 49.2553636, | |
"lng": -123.0873365 | |
}, | |
"shift_start": "8:00", | |
"shift_end": "12:00" | |
} | |
}, | |
"solution": { | |
"vehicle_1": [ | |
"order_3", | |
"order_2", | |
"order_1" | |
] | |
}, | |
"unserved": [ | |
"new_order" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment