OSRM Distance and Route Calculation
Use this to run
python distance.py --input coordinates.xlsx --output-prefix results --max-nodes 40 --concurrency 4 --clear-cache
If you're getting high failures, reduce --max-nodes in multiples of 20 and --concurrency in multiples of 2.
I have had the optimal results with this combination. --max-nodes 40 --concurrency 4
The required columns are as below:
source latitude | source longitude | destination latitude | destination longitude

For more info, please go the below link: https://project-osrm.org/docs/v5.7.0/api/?language=cURL#general-options