Most races are held all over the world on special circuits which have to be carefully checked all the time for safety.
Monaco is the only one which takes place purely on city streets and it's the shortest.
The longest is at Spa-Francorchamps in Belgium at 6.94 km.