I am just about to implement a traffic simulation. For the road model, I use data from OpenStreetMap. This means that a road consists of several sections, which are strung together. Of those sections start and end points are known. The vehicle moves on the vector which points from the start to the end point. Curves are modeled by multiple vectors strung together.
In order to make the simulation as realistic as possible, I need a concept for the detection of curves so that the vehicles can respond to this (speed up / slow down). It should also be determined, at which point the curve begins, which cuts / points belonging to the bend and the point at which it ends.
How can I identify the curves, even if they contain an arbitrary number of small individual pieces?
Thanks for every hint!