Fix editor spaces tabs mix
This commit is contained in:
parent
6dd18c40a8
commit
d305443c82
@ -1,4 +1,4 @@
|
|||||||
from cartodb_services.here.geocoder import HereMapsGeocoder, HereMapsGeocoderV7
|
from cartodb_services.here.geocoder import HereMapsGeocoder, HereMapsGeocoderV7
|
||||||
from cartodb_services.here.bulk_geocoder import HereMapsBulkGeocoder, HereMapsBulkGeocoderV7
|
from cartodb_services.here.bulk_geocoder import HereMapsBulkGeocoder, HereMapsBulkGeocoderV7
|
||||||
from cartodb_services.here.service_factory import get_geocoder, get_bulk_geocoder, get_routing_isoline
|
from cartodb_services.here.service_factory import get_geocoder, get_bulk_geocoder, get_routing_isoline
|
||||||
from cartodb_services.here.routing import HereMapsRoutingIsoline
|
from cartodb_services.here.routing import HereMapsRoutingIsoline
|
||||||
|
@ -289,4 +289,4 @@ class HereMapsBulkGeocoderV7(HereMapsGeocoderV7, StreetPointBulkGeocoder):
|
|||||||
results.append((row['recId'], [], {}))
|
results.append((row['recId'], [], {}))
|
||||||
elif row['matchLevel'] == 'FAILED':
|
elif row['matchLevel'] == 'FAILED':
|
||||||
results.append((row['recId'], [], {'error': 'Bulk geocoder failed'}))
|
results.append((row['recId'], [], {'error': 'Bulk geocoder failed'}))
|
||||||
return results
|
return results
|
||||||
|
@ -43,7 +43,7 @@ class HereMapsRoutingIsoline(Traceable):
|
|||||||
self.read_timeout = service_params.get('read_timeout', self.READ_TIMEOUT)
|
self.read_timeout = service_params.get('read_timeout', self.READ_TIMEOUT)
|
||||||
self.max_retries = service_params.get('max_retries', self.MAX_RETRIES)
|
self.max_retries = service_params.get('max_retries', self.MAX_RETRIES)
|
||||||
self._url = "{0}{1}".format(base_url, isoline_path)
|
self._url = "{0}{1}".format(base_url, isoline_path)
|
||||||
|
|
||||||
def get_api_version(self):
|
def get_api_version(self):
|
||||||
return self.API_VERSION
|
return self.API_VERSION
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ class HereMapsRoutingIsolineV8(Traceable):
|
|||||||
self.connect_timeout = service_params.get('connect_timeout', self.CONNECT_TIMEOUT)
|
self.connect_timeout = service_params.get('connect_timeout', self.CONNECT_TIMEOUT)
|
||||||
self.read_timeout = service_params.get('read_timeout', self.READ_TIMEOUT)
|
self.read_timeout = service_params.get('read_timeout', self.READ_TIMEOUT)
|
||||||
self.max_retries = service_params.get('max_retries', self.MAX_RETRIES)
|
self.max_retries = service_params.get('max_retries', self.MAX_RETRIES)
|
||||||
|
|
||||||
def get_api_version(self):
|
def get_api_version(self):
|
||||||
return self.API_VERSION
|
return self.API_VERSION
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ class HereMapsRoutingIsolineV8(Traceable):
|
|||||||
'range': 'range[values]',
|
'range': 'range[values]',
|
||||||
'rangetype': 'range[type]',
|
'rangetype': 'range[type]',
|
||||||
'mode': {
|
'mode': {
|
||||||
'type': 'routingmode',
|
'type': 'routingmode',
|
||||||
'transportmodes': 'transportmode',
|
'transportmodes': 'transportmode',
|
||||||
'trafficmode': None,
|
'trafficmode': None,
|
||||||
'feature': 'avoid[feature]'
|
'feature': 'avoid[feature]'
|
||||||
@ -347,4 +347,4 @@ class HereMapsRoutingIsolineV8(Traceable):
|
|||||||
if not ('mode_traffic' in options and options['mode_traffic'] == 'enabled'):
|
if not ('mode_traffic' in options and options['mode_traffic'] == 'enabled'):
|
||||||
mode_params.update({'departuretime': 'any'})
|
mode_params.update({'departuretime': 'any'})
|
||||||
|
|
||||||
return mode_params
|
return mode_params
|
||||||
|
@ -32,4 +32,4 @@ def get_routing_isoline(logger, app_id=None, app_code=None, service_params=None,
|
|||||||
else:
|
else:
|
||||||
return HereMapsRoutingIsoline(app_id=app_id, app_code=app_code,
|
return HereMapsRoutingIsoline(app_id=app_id, app_code=app_code,
|
||||||
logger=logger,
|
logger=logger,
|
||||||
service_params=service_params)
|
service_params=service_params)
|
||||||
|
Loading…
Reference in New Issue
Block a user