When I had a Nikon D500, I used SnapBridge, which connected to my phone with Bluetooth and I could use that to GPS tag.
Nikon use to also make a sort of unwieldy GPS that fit in the hot shoe and connected to the 10 pin remote port used on a lot of the higher end cameras. Not sure if they still make that or if it’s compatible with any of the Z cameras.
My first GPS was the Nikon one.
However performance of that device was poor (it took ages to get current coordinates and it lost coordinates each time you turned off the camera) and was consuming high on the battery.
If I remember correctly I paid it about 350€+ new
This is why I finally opted for a third party device. Gets the current coordinates in a reasonable amount of time, has an own on/off switch (either if you want it to be ready between two captures with the camera off, or it being off for not draining on the battery when you don’t need it) and an internal small rechargeable battery that gets powered by the camera, when it is on.
Those devices cost a bit over 30€ new
Both devices sit on the hot shoe and have different cables to fit different camera models (and for the third party: brands)
As much as I love using Nikon gear, this one piece was what I disliked most.