Understanding the Geospatial Reasoning Capabilities of LLMs: A Trajectory Recovery Perspective