Unleashing the Power of Data Synthesis in Visual Localization