POST vs GET requests

2 posts / 0 new
Last post
POST vs GET requests


When making a call via the following:

L.mapquest.directions().route(routeOptions, function(err, response) {

Looking at the network monitor in Google Chrome, the data is sent as a GET request - as posted below (key removed).  When the requested route has a lot of entries (approx 5k in character length) we are seeing instances where the requested route is truncated and the API returns an error as only the truncated JSON appears to be sent - possibly due to browser restrictions on URL lengths.

Rather than making a GET request, is there an option to force L.mapquest.directions().route to make a POST request instead?  Any help apprecated!



  1. Request URL:


  3. Request Method:


  4. Request URL:

  6. Request Method:


  7. Status Code:

    200 OK

  8. Remote Address:

  9. Referrer Policy:


  10. Status Code:

    200 OK

  11. Remote Address:

  12. Referrer Policy:


No, there is not a post
No, there is not a post option. The app could make its own post request to the api and put the results on the map if needed.