Removed routing client from isolines

This commit is contained in:
Antonio 2017-12-27 16:31:29 +01:00
parent dabd596271
commit bc9dbdbb72
2 changed files with 2 additions and 4 deletions

View File

@ -37,9 +37,8 @@ class MapboxIsolines():
Python wrapper for Mapbox services based isolines.
'''
def __init__(self, matrix_client, routing_client):
def __init__(self, matrix_client):
self._matrix_client = matrix_client
self._routing_client = routing_client
def _calculate_matrix_cost(self, origin, targets, isorange,
profile=DEFAULT_PROFILE,

View File

@ -14,8 +14,7 @@ class MapboxIsolinesTestCase(unittest.TestCase):
def setUp(self):
matrix_client = MapboxMatrixClient()
routing_client = MapboxRouting()
self.mapbox_isolines = MapboxIsolines(matrix_client, routing_client)
self.mapbox_isolines = MapboxIsolines(matrix_client)
def test_calculate_isochrone(self):
time_range = 10 * 60 # 10 minutes