Can you override location settings in code

… eg make the entire device believe it is situated at a different GPS co-ordinate?
(I know we can do that via Xcode for testing purposes)
Looking to be able to create an app, select a gps co-ordinate and make the iphone think it has moved.

make the DEVICE think its moved? or make your APP think it is somewhere else?

I doubt seriously that Apple will allow you to spoof the device actual location

https://www.lifewire.com/fake-gps-location-4165524