Urban characteristics and energy