The Templater community plugin allows you to feed your templates with the result of any shell command.
For example, on a Mac,
curl https://freegeoip.app/json/ | python3 -c "import sys, json; r=json.load(sys.stdin); print(r['region_name'] + ', ' + r['country_name'])"
will return your_city, your_country. You could even manipulate the response in some other way, or build a google maps URL. However, it won’t go any more detailed than that, because it relies on IP location.
If you need a GPS-like “exact location”, that’s probably also possible, but you’ll have resort to another kind of API provider like here.com, and the scripting will be harder to put together.