POST request Matrix API

As we get a few questions via email it is time to copy some of them over to here:

I’ve run into a problem using the Matrix API via POST request. It cannot seem to find the locations … java.lang.IllegalArgumentException","message":"Cannot find from_points:

Here the problem was that the GET request uses the location format

but for the POST request you need to use an array which follows the GeoJSON standard

"points":[[longitude1,latitude1], [longitude2,latitude2], ... ]

This topic was automatically closed after 12 days. New replies are no longer allowed.