Difference between revisions of "Get total weight of route"
From MyMobileWorkers API
(→Example curl request) |
(→Example curl request) |
||
| Line 34: | Line 34: | ||
== Example curl request == | == Example curl request == | ||
| − | curl "http:// | + | curl "http://api.mymobileworkers.com:8080/api/1/routes/route/weight?api_key=TEST_KEY&route_code=ROUTE-001&route_date=2014-01-01" |
Latest revision as of 12:50, 14 November 2016
[edit] Summary
| Get total weight of route | ||
|---|---|---|
| URL | http://:base_url/:api_path/:version/routes/route/weight?api_key=YOUR_KEY&route_code=CODE&route_date=DATE | |
| Type | GET | |
| Params: | api_key | required |
| route_code | required | |
| route_date | required | |
| Response | JSON | |
The get total weight for route method returns the weight of a route on a specific date. This is determined by the total weight of all jobs on the specified route and date.
[edit] Example response
{"weight":180.0}