Text this: Mitigating spatial hallucination in large language models for path planning via prompt engineering