I was in Haiti a few months ago. I had wifi so Google Maps could download the local maps. but when I tried to get a GPS signal it went nuts. It thought I was in Florida.
Did you have 'roaming' on?
Is there a GPS app or system that works out of the country?
GPS works everywhere on the planet (except maybe close to the poles).
However, when the GPS system has established your position, your phone has to connect to the network to get (= download) the appropriate map tiles and other map data to display on your screen. If the phone can't connect (properly) to the Google Maps database and the GPS database* you get incorrect results on your screen, although the GPS works flawlessly.
*The GPS system and database are owned and 'managed' by the US' Department of Defense. The Pentagon. Which is why e.g. turn-by-turn navigation does not work in certain 'strategic areas' like Iran, and large parts of the Middle East. They, the US military, can switch GPS off or on at will for any part of the world or consciously degrade the quality and/or resolution of the data. And they
do it all the time!
It is low-level cyber warfare. But cyber
warfare nevertheless!
Also, I was flying on an airlplane recently and I checked the fine print on the flight magazine and GPS was permitted in flight. However when I tried to get a GPS signal it was very poor.
I don't know, TBH, but it could be due to you, in the plane, being enclosed by metal or other signal distorting materials. Afaik GPS signals are
very weak and can fairly easily be distorted or blocked by the local situation.
When checking the app 'GPS status' on the move in a car I consistently receive more and stronger GPS satellite signals when I hold the phone (= GPS receiver) close to the window than when I hold it in the middle of the car (backseat) close to the roof. From that latter position it (the GPS receiver in it) can't 'see' as much of the unobstructed sky as it can near the window.