Difference between revisions of "Get route limit"

From MyMobileWorkers API
Jump to: navigation, search
(Created page with "== Summary == {| border="1" class="wikitable" ! Get route limit ! colspan="2" | |- ! URL | colspan="2" | http://:base_url/:api_path/:version/routes/route/limit?api_key=YOUR...")
 
(→‎Example curl request)
Line 31: Line 31:
 
== Example curl request ==
 
== Example curl request ==
  
−
curl "http://live.mymobileworkers.com/api/1/routes/route/limit?api_key=TEST_KEY&route_code=ROUTE-001"
+
curl "http://live.mymobileworkers.com:8080/api/1/routes/route/limit?api_key=TEST_KEY&route_code=ROUTE-001"

Revision as of 10:22, 5 December 2013

Summary

Get route limit
URL http://:base_url/:api_path/:version/routes/route/limit?api_key=YOUR_KEY&route_code=CODE
Type GET
Params: api_key required
route_code required
Response JSON

The get route limit method returns the (weight) limit of a route as set in the portal.

Example response

{"limit":180.0}

Example curl request

curl "http://live.mymobileworkers.com:8080/api/1/routes/route/limit?api_key=TEST_KEY&route_code=ROUTE-001"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox