Today, I recommend a Python tool called geospy, which is a well-written Python library. After installing it via pip, you can directly use Graylark's AI-driven geolocation service to discover the location where the photo was taken. It is quite convenient to use, and the results will provide coordinates and generate a Google Maps link based on the image coordinates, as shown below:
geospyer --image path/to/your/image.jpg
from geospy import GeoSpy
geospy = GeoSpy()
country = geospy.country("image.png")
city = geospy.city("image.png")
explanation = geospy.explanation("image.png")
coordinates = geospy.coordinates("image.png")
maps_link = geospy.maps("image.png")
location_data = geospy.locate("image.png")
print(str(location_data))
Link: https://github.com/atiilla/geospy
Demo: https://geospy.ai/