I know the UK visa is applied for online, but you will have to appear somewhere for biometric capturing. Can you give this biometric information in a location that is not your residence (as in another country?)
Yes, depending on the type of visa you are applying for.
Providing you are present legally in the country or territory you’re applying from, you can apply for a visit visa, a short-term study visa, International Sportsperson, Temporary Work – Creative Worker, Youth Mobility Scheme and Global Talent entry clearance in any visa application centre, British diplomatic mission or consular post overseas where entry clearance applications are accepted.
Applications for other types of entry clearance should be made in the country where you’re living.