testing speed limit algorithm with real data
In previous post I proposed an algorithm for automated detection of speed limit violations from GPS data . Then in a later post I tested this on simulated data . Here I apply it to data which was collected by someone else during a short drive in San Francisco. I've a general 40 kph speed limit within the city (also previously here ), except on the interstate highways. This car trip didn't include any interstate highways, so it will be interesting to see how it would do with such a restriction. Here's the speed versus time. As you can see, it was a short trip, only around 8 minutes: It's mostly slow going, except for one stretch on Bayshore Boulevard, which is faster. That portion is generally 50 to 65 kph, Sure enough, this triggers the algorithm as speeding for a 40 kph limit. I assign a fine in dollars equal to the excess distance ahead of a "pace car" beyond the 50 meters allowed by the algorithm, at a ratio of one dollar per 100 meters. So if...