Oh, I see... that is very interesting and I have a conversation pending about this. Because the HR also works "late".
Use the slope it is the solution, the problem here is how to get the slope of the road. The GPS it is not very exact, so use the location to get the slope it is not a good idea...