Generalized Newton–Cartan geometries for particles and strings. (13th March 2023)