Step1: Taking photos
First of all, you'll need a camera and a fisheye-lens.
I used my iPad2 and my fisheye lens.
Sometimes use an Andoid Tablet.
Take photos throughout 360° degrees from the same point. In that time, you should overlap each photos to combine. Making panorama photo for StreetView, it needs 360° panorama including upwards and downwards views.
360x180° Panorama Tutorial - Pt.1: Shooting the images
Index:The way of creating custom streetview | Step2: Making a panorama