Multiple Routing request in single request

Hi, I’m Abhishek. I want to calculate multiple distinct routes in one request, e.g. I will pass pair of locations ( start location, end location) of all required routes in request, and I will get all routes in JSON. I have the option to separately send requests, but it will 1-1.50 seconds for each request. I want all results in a maximum of 3 seconds. There will be 50-100 route calculations.

Thank you.

There is batch Routing endpoint, but getting 100 results in 3 seconds without custom contract is not achievable…

2 Likes

Thank you for your reply.

I achieved it by asynchronous requests.
In python, by using aiohttp & asyncio we can send asynchronous requests.
On my laptop, I got 100 requests completed in 2.93s.