Gps data for moralis database

Is there a function call or request or any of the sort to determine GPS data of users who log onto applications built with moralis? I believe location data is pretty much a necessary component of the current internet architecture of a lot of applications, but I canโ€™t seem to find any indication on how to acquire location data of application users?

You can request it from user browser with the below code snip and store it in Moralis database if you want.

navigator.geolocation.getCurrentPosition(function(location) {
  console.log(location.coords.latitude);
  console.log(location.coords.longitude);
  console.log(location.coords.accuracy);
});

Will check out if this works appreciate the reply. Iโ€™m also wondering though, I thought navigator was a call for page routing? What package allows navigator to be used to fetch browser data?

Navigator interface also has gelocation API
Check this: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation