-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Labels
Description
Details here https://www.mapbox.com/api-documentation/#using-http-post
The Map Matching API supports access via the HTTP
POSTmethod. To submit a request using HTTP POST, you must make the following changes to the request:
- The HTTP method must be
POST- The
Content-Typeof the request must beapplication/x-www-form-urlencoded- The coordinate list must be present in the request body as the
coordinates=parameter, and there must be no coordinates in the URL- The
access_tokenparameter must be part of thePOSTURL, not the body- All other parameters must be part of the request body
An example
POSTrequest looks like this:POST /matching/v5/mapbox/driving?access_token=your-access-token HTTP/1.0 Content-Type: application/x-www-form-urlencoded coordinates=2.344003915786743,48.85805170891599;2.346750497817993,48.85727523615161;2.348681688308716,48.85936462637049;2.349550724029541,48.86084691113991;2.349550724029541,48.8608892614883;2.349625825881958,48.86102337068847;2.34982967376709,48.86125629633996&steps=true&tidy=true&waypoints=0;6
cc @kbauhaus @osana
ariel262626