Credit to @Lorepatch for the code, a few landmarks, and the first map. I did modify the code a tiny bit, though.