Skip to content Skip to sidebar Skip to footer

Settimeout On Directionservice Route In Google Map Javascript Api

I am using Directionservice of Google Map JavaScript API. Actually I am not able to display more than 10 routes in my map. If I am trying to display more than 10 routes then it is

Solution 1:

The client side DirectionService is created to respond to user interaction and this is why your requests are getting throttled - you cannot expect the JS Maps API library to be able to perform more than 10 requests in a burst.

If you need to make an analysis of a number of routes you can consider using the server side directions service since it has usage limits which are documented and you can enable billing to get higher quotas.

Post a Comment for "Settimeout On Directionservice Route In Google Map Javascript Api"