How is velocity different from speed?

Velocity is based on distance.
Velocity includes direction.
Velocity can be an average or instantaneous.

Speed is a scalar quantity that only measures the rate at which an object moves, without considering the direction. Velocity, on the other hand, is a vector quantity that includes both the speed of an object and its direction of motion. This means that two objects moving at the same speed but in different directions will have different velocities. Additionally, velocity can be either average (measured over a period of time) or instantaneous (measured at a specific moment).