Removed routing client from isolines
This commit is contained in:
@@ -37,9 +37,8 @@ class MapboxIsolines():
|
|||||||
Python wrapper for Mapbox services based isolines.
|
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._matrix_client = matrix_client
|
||||||
self._routing_client = routing_client
|
|
||||||
|
|
||||||
def _calculate_matrix_cost(self, origin, targets, isorange,
|
def _calculate_matrix_cost(self, origin, targets, isorange,
|
||||||
profile=DEFAULT_PROFILE,
|
profile=DEFAULT_PROFILE,
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ class MapboxIsolinesTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
matrix_client = MapboxMatrixClient()
|
matrix_client = MapboxMatrixClient()
|
||||||
routing_client = MapboxRouting()
|
self.mapbox_isolines = MapboxIsolines(matrix_client)
|
||||||
self.mapbox_isolines = MapboxIsolines(matrix_client, routing_client)
|
|
||||||
|
|
||||||
def test_calculate_isochrone(self):
|
def test_calculate_isochrone(self):
|
||||||
time_range = 10 * 60 # 10 minutes
|
time_range = 10 * 60 # 10 minutes
|
||||||
|
|||||||
Reference in New Issue
Block a user