Fixed MapQuest batch not using env key
from __future__ import absolute_import
from geocoder.base import MultipleResultsQuery
from geocoder.mapquest import MapquestResult
+from geocoder.keys import mapquest_key
class MapQuestBatchResult(MapquestResult):
@@ -33,6 +34,7 @@ class MapquestBatch(MultipleResultsQuery):
_RESULT_CLASS = MapQuestBatchResult
_URL = 'http://www.mapquestapi.com/geocoding/v1/batch'
_TIMEOUT = 30
+ _KEY = mapquest_key
def _build_params(self, location, provider_key, **kwargs):
self._TIMEOUT = kwargs.get('timeout', 30)
