What is The type of energy of an object because of location?

Potential energy.