ACCEPTABLE_MODES = set(["driving", "walking", "bicycling", "transit"])

class DirectionsRequest(object):

	def __init__(self, mode="driving", **kwargs):
		self.mode = mode
		self.origin = kwargs['origin']
		self.destination = kwargs['destination']

	def set_api_key(self, key):
		self.api_key = key
		return self

ACCEPTABLE_MODES = set(["driving", "walking", "bicycling", "transit"])

class DirectionsRequest(object):

	def __init__(self, **kwargs):
		self.mode = "driving"
		self.origin = kwargs['origin']
		self.destination = kwargs['destination']

	
	def set_api_key(self, key):
		self.api_key = key
		return self

Build custom route requester class
Build custom route requester class

  ACCEPTABLE_MODES = set(["driving", "walking", "bicycling", "transit"])
  
  class DirectionsRequest(object):
  
- 	def __init__(self, mode="driving", **kwargs):
+ 	def __init__(self, **kwargs):
- 		self.mode = mode
+ 		self.mode = "driving"
  		self.origin = kwargs['origin']
  		self.destination = kwargs['destination']
  
+ 	
  	def set_api_key(self, key):
  		self.api_key = key
  		return self
  
Build custom route requester class
## Code Before:
ACCEPTABLE_MODES = set(["driving", "walking", "bicycling", "transit"])

class DirectionsRequest(object):

	def __init__(self, mode="driving", **kwargs):
		self.mode = mode
		self.origin = kwargs['origin']
		self.destination = kwargs['destination']

	def set_api_key(self, key):
		self.api_key = key
		return self

## Instruction:
Build custom route requester class
## Code After:
ACCEPTABLE_MODES = set(["driving", "walking", "bicycling", "transit"])

class DirectionsRequest(object):

	def __init__(self, **kwargs):
		self.mode = "driving"
		self.origin = kwargs['origin']
		self.destination = kwargs['destination']

	
	def set_api_key(self, key):
		self.api_key = key
		return self
