I'm reading the definition of the principle of locality from its Wikipedia page:
The principle of locality states that an object is influenced directly only by its immediate surroundings.
This definition makes sense to me, but I wonder can we interpret this using some common examples in physics? I heard about General Relativity is local. Can I interpret this as any object with mass will cause the curvature of spacetime, which are immediate surroundings that influence the trajectory of the planets? Also, how does the principle of locality is related to action at a distance?