<s> from geolocation . distance_matrix . main import DistanceMatrix <EOL> from geolocation . geocode . main import Geocode <EOL> import logging <EOL> class GoogleMaps ( object ) : <EOL> """<STR_LIT>""" <EOL> log = logging . getLogger ( '<STR_LIT>' ) <EOL> def __init__ ( self , api_key ) : <EOL> self . geocode = Geocode ( api_key ) <EOL> self . distance_matrix = DistanceMatrix ( api_key ) <EOL> def search ( self , location = None , lat = None , lng = None ) : <EOL> return self . geocode . search ( location , lat , lng ) <EOL> def distance ( self , origins , destinations , mode = None , avoid = None ) : <EOL> return self . distance_matrix . distance ( origins , destinations , mode , avoid ) </s>
