If you aren't playing without the driving line, the game still tells you when to brake.
When the gear change indicator comes up as red, it means you should get ready to brake. When it flashes red, then you brake.
This is pretty much what I do, instead of trying to 'learn' every corner of...