Help with Maps and GPS

For my project I need the user to enter coordinates however this doesn’t seem very user friendly. I was wondering if there’s a way for the user to search or select the location on a map and then the coordinates can be extracted from this?
Any ideas would be appreciated