This tutorial explains how you can alter your callback functions into Promise based ones. It also explains why you would want to do this.
Code from video: https://gist.github.com/prof3ssorSt3v...
Dev.to Article about converting Geolocation callbacks to Promises: https://dev.to/prof3ssorst3v3/you-can...