Even in a bicycle, I found issues with a hub motor when building up an electric bike:
http://www.evalbum.com/676The main issue, as Brammo found, that, unless one uses a very powerful motor (high voltage, big battery for range) one must choose a hub motor that has either a) good torque for hill climbing but low speed or b) high speed motor for making time on the flats but poor hill-climbing ability. So I mounted one mid-bike and ran it through the bike's gearing system by driving a tandem-style chainwheel on the left of the bottom bracket. (not my design but I prototyped it with the inventor).
I tested a commercial hub motor bicycle and it was sweet, except the range was about 10 miles in the hills of San Francisco.That company went out of business.
Here's a nice breakdown with the pros and cons (and some cool pix):
https://www.electricbike.com/hubmotors/