I will post an image which believe it is essential to understand the question: See the image: Figure book
Spherical coordinates $r, \theta, \phi$ are perfectly intuitive because the angles $\theta$ and $\phi$ correspond, respectively, to longitude and latitude on the surface of the Earth, and $r$ is the distance to the center of the Earth.
I believe the notation is wrong, since theta is the angle wrt north and south axis, shouldn't be the reverse?
Which textbook is this taken from? If it is a mathematics textbook, the convention is that $\phi$ corresponds to latitude and $\theta$ to longitude, but if it is a physics textbook, then $\theta$ will usually correspond to latitude and $\phi$ to longitude. This sort of confusion is why I usually stay away from spherical coordinates.