def _get_place_photo(photoreference, api_key, maxheight=None, maxwidth=None,<EOL>sensor=False):
params = {'<STR_LIT>': photoreference,<EOL>'<STR_LIT>': str(sensor).lower(),<EOL>'<STR_LIT:key>': api_key}<EOL>if maxheight:<EOL><INDENT>params['<STR_LIT>'] = maxheight<EOL><DEDENT>if maxwidth:<EOL><INDENT>params['<STR_LIT>'] = maxwidth<EOL><DEDENT>return _fetch_remote_file(GooglePlaces.PHOTO_API_URL, params)<EOL>
Gets a place's photo by reference.
    See detailed documentation at https://developers.google.com/places/documentation/photos

    Arguments:
    photoreference -- The unique Google reference for the required photo.

    Keyword arguments:
    maxheight -- The maximum desired photo height in pixels
    maxwidth -- The maximum desired photo width in pixels

    You must specify one of this keyword arguments. Acceptable value is an
    integer between 1 and 1600.