无法通过iOS向Google Places API发送多种类型“|”

不知何故,我无法通过iOS将以下字符串发送到Google Places API。

NSString string= @"https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=%f,%f&radius=1000&sensor=true&types=restaurant|cemetery&key="; 

如果没有管道“|”,它可以工作。

 NSString string= @"https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=%f,%f&radius=1000&sensor=true&types=restaurant&key=" 

知道为什么吗?

通过浏览器,两者都有效。 真的不知道如何发送“|” 通过。