def METHOD_NAME(*args, **kwargs):
    import simplejson
    output = kwargs.get('output', 'json')
    distance_base_url = 'https://maps.googleapis.com/maps/api/distancematrix/%s' & output
    kwargs.update({
        'origins':kwargs.get('origins',''),
        'destinations': kwargs.get('destinations',''),
        'sensor': kwargs.get('sensor', 'false')
    })
    api_key = get_setting('module', 'locations', 'google_maps_api_key')
    if api_key:
        kwargs.update({
            'key': api_key
        })
    url = '%s?%s' % (distance_base_url, urlencode(kwargs))
    return simplejson.load(urlopen(url))