Apple maps works perfectly fine in China. I’m not sure what it’s like for android users.
It includes transit, at least for Beijing, see https://www.apple.com/ios/feature-availability/. I always took a taxi though so that wasn’t very important to me, so I used mostly the didi dache app.