Every time we use Maps, Google Pay or Android Auto the app will request to enable GPS with the below popup.

So I’ve created a Tasker Profile which automatically enables Location when we open these Apps.
https://www.github.com/tuxian-root/tasker/tree/master/TaskerConfigBackup.xml
Just import this Project in Tasker app and customise it
Screenshots:



