def METHOD_NAME(self, api_type):
    """
    Is this API key allowed to use the requested HTTP API?
    """
    if api_type == "locate":
        return bool(self.allow_locate)
    elif api_type == "region":
        return bool(self.allow_region)
    elif api_type == "submit":
        # Submit are always allowed, even without an API key.
        return True
    return None