Add provider for QPS manger in tomtom services

This commit is contained in:
Mario de Frutos 2018-10-24 12:00:08 +02:00
parent 0e859d8955
commit 6640909780
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ class TomTomGeocoder(Traceable):
return False
@qps_retry(qps=5)
@qps_retry(qps=5, provider='tomtom')
def geocode(self, searchtext, city=None, state_province=None,
country=None):
response = self.geocode_meta(searchtext, city, state_province, country)
@ -80,7 +80,7 @@ class TomTomGeocoder(Traceable):
else:
return response[0]
@qps_retry(qps=5)
@qps_retry(qps=5, provider='tomtom')
def geocode_meta(self, searchtext, city=None, state_province=None,
country=None):
if searchtext:

View File

@ -89,7 +89,7 @@ class TomTomRouting(Traceable):
point[ENTRY_LONGITUDE]))
return geometry
@qps_retry(qps=5)
@qps_retry(qps=5, provider='tomtom')
def directions(self, waypoints, profile=DEFAULT_PROFILE,
date_time=DEFAULT_DEPARTAT):
self._validate_profile(profile)