This function can be called in the site’s Javascript to determine the location of the visitor of the site.
To be able to call this function, somewhere on the site {% include_plate_scripts "determine_location" %}
must be called (e.g. the head section)
The function returns a Javascript Promise, which you can use in the following way:
...