Use current location in form view

When entering a location in a form view, I would like to be able to use my current location (on laptop or mobile), so that I can gather data while in the field, without having to copy-and-paste my location first using another app.