Creating AR applications using Nearby Interaction and ARkit

Hi, sorry if the sentence is wrong as I am using the translate function.

I am looking to create an AR application using Nearby Interaction and ARkit. The devices to be used are iPhone 15pro and apple watch 9. The iPhone implementation will measure the distance to the apple watch while simultaneously using AR to track images. The apple watch implementation will only measure the distance to the iPhone. Is it possible to implement this feature? If you know of any, I would like to know.