LJ you should carefully examine the outputs your code produces and you would be able to figure out the issue. Something changed in syntax but there are still a work around so you can go further with your studies.
The underlying reason is that Line accepts x,y coordinates, while GeoPath accepts latitude longitude pairs (which is kinda y,x).
Can indeed be solved in many ways:
Thanks guys! Changing it from Line to GeoPath works. As suggested, I reported it to Wolfram a few days ago, so hopefully it’ll be fixed soon. Thanks again
Note that this is not a bug. It should be like you described in your original post. Coordinates are in the x,y form while GeoGraphics accepts Lat,Lon pairs (‘y’,‘x’).
Using Position with entityValue gives coordinates in the lat,lon format.
You are correct. The bug I was referring to was not in Mathematica but a bug in the wolfram website example. The code as posted has the error because it tries to use line on Lat,Lon pairs.