Have you read at least the titles of the chapters of the book?
Or the official Apple documentation (http://developer.apple.com/safari/)?
http://developer.apple.com/safari/library/samplecode/iPhoneO...
http://developer.apple.com/safari/library/documentation/Appl...
Edit: where in the book did you see how to use geolocation, vibration or any other feature which is not available with a web app developed for mobilesafari?