def retrieve_pincodes_from_response(reverse_geocode_result):
    """This takes the raw response from the API and gathers all the possible pincodes returned by the API
    
    Args:
        reverse_geocode_result (dict): Response from GMaps API
    
    Returns:
        List: List of all the possible pincodes
    """
    codes = []
    result_dicts = reverse_geocode_result[0]["address_components"]
    for result_dicts_complete in reverse_geocode_result:
        result_dicts = result_dicts_complete["address_components"]
        for result_dicts in result_dicts:
            if "postal_code" in result_dicts["types"]:
                codes.append(result_dicts["long_name"])
    return codes