My iPhone was getting really poor wifi signal, a side effect was gps apps were very inaccurate.
After replacing the antenna cable everything works great again.
Some months ago y replaced the battery and it could be possible that some connector was not making correct contact. And disassembling and reas . . .