I have a mini-map project that uses Distance Matrix Google Maps API to create a polyline (route) from start point to end point. I have many markers in my map and I have to connect them using Distance Matrix API to fetch the duration value.
The problem is the total requests of the Distance Matrix API are more than 100 elements, exactly 400 elements. I know that Google Maps API limit only to 100 elements per client-side request. According to the documentation,
While you are no longer limited to a maximum number of elements per day (EPD), the following usage limits are still in place for the Distance Matrix API:
Maximum of 25 origins or 25 destinations per request. Maximum 100 elements per server-side request. Maximum 100 elements per client-side request. 1000 elements per second (EPS), calculated as the sum of client-side and server-side queries.
So, I decide to divide the 400 elements into 4 requests (100 elements each). However, the documentation doesn't state how long should I wait to request another 100 elements.
Does anyone know?
Thank you.