Getting starte: My first project: Cruise control for ebike

Knowing the bike's speed is only half the equation. How do you effect the throttle?