Car speed limit.

Assuming that the RPM is a set multiplier of the speed, you can just set the max RPM. If the RPM fluctuates depending on slope, etc… then this is not your solution.