def _validate_place_types(self, types):
        """Validate place types and return a mapping for use in requests."""
        for pt in types:
            if pt not in self.place_types:
                raise InvalidPlaceTypeError(pt)
        return {'types': ",".join(types)}
def _validate_place_types ( self , types ) : for pt in types : if pt not in self . place_types : raise InvalidPlaceTypeError ( pt ) return { 'types' : "," . join ( types ) }
Validate place types and return a mapping for use in requests.