With just a compass, you can't figure out latitude and longitude which is why maps intended for navigation using only a compass such as portolans don't generally have latitude and longitude graticules. Compass based navigation becomes less practical as you get closer to the pole.
Determining latitude (on a globe) requires a star chart or almanac and a tool for measuring angle like a theodolite or sextant. How that would work on your world would be complicated and would depend on how the world and various celestial bodies move relative to one another.
Determining longitude (on a globe) reliably not only requires the tools for latitude, but also a very accurate portable clock like a marine chronometer. Again, dealing with your world will be complicated and depend on details of distances and movements of celestial bodies.