Please see the for a simpler method on how to get started. If you are familiar with POST requests and JSON then do not hesitate to continue here.
Especially when you use many locations you should get familiar with this POST endpoint as the GET endpoint has an URL length limitation. Additionally the request of this POST endpoint can be compressed and can slightly speed up the request.
To do a request you send JSON data. Both request scenarios GET and POST are identical except that all singular parameter names are named as their plural for a POST request.
The effected parameters are: points, point_hints and snap_preventions.
Please note that in opposite to the GET endpoint, points are specified in the order of longitude, latitude.
For example point=10,11&point=20,22 will be converted to the points array (plural):
Note again that also the order changes from [latitude,longitude] to [longitude,latitude]
similar to .
Example: