In the appstore is a widget called "Google Maps for Mobile". It includes a widget called "where am i" which presents a button to the user. When clicking the button the current GPS location is retrieved. It works fine in Mendix 4 but have not tried it yet in Mendix 5.