The Didomi module integrates Didomi's Consent Management Platform into Drupal.
It has built-in support for some modules and extensible for other modules.
This module provides a webform field, that when the page loads it autofills with the user location, using the browser Geolocation API.
The module is a work in progress.