https://roadcurvature.com/how-it-works/ -> This site explains how curve can be calculated, I am not sure if it is implementable though. I am worried about The computational cost... The method used is explained briefly in the site and also the python project is available at GitHub.
User story
Acceptance criteria
Definition of done