A way to ensure crosswalks are at their most convenient locations depending on pedestrian crossing patterns at the intersection