We don't know! There is no explanation given as to how Gamora locates the map or the location of the Soul Stone, she just announces that she does know. The locations of the various stones is purely an MCU construct, there is no equivalent in the comics which have a somewhat different structure than the movies.

Only top voted, non community-wiki answers of a minimum length are eligible