Python reported an error with keyerror: ‘longitude’

The error reporting interface of Python is shown in the following figure:
. I found a solution on the Internet, which may be useful to you. But I tried it, but it didn’t work. So when I looked at it, I found that it was caused by my carelessness. Ah, as shown in the figure below, there is a comma missing in front of longitude, as shown in the figure below:
, so this problem is solved. OK, I will continue my course design.

Read More: