this is already taken care of, in EU within few years so roads must have toll gate system monitoring passing cars with unit built in car, so you can easily measure average speed, though it's not perfect solution if there is longer distance between gates