I have two locations.
Object in sky: latitude, longitude, altitude
Object on the ground: latitude, longitude, compass heading
I would like to make something that will point my object on the ground to face the object in the sky (i.e move it clockwise/anticlockwise on a circular axis and then tilt it up and down)
I have looked at different astronomy libraries available which can provide the direction to face to see the moon and so on, but none seem to provide any option for a given location
Ideally I'd like to do this calculation in either NodeJS or PHP but can also work with Java.
Python solution from