API Reference

Returns the user's latitude and longitude or an error.

async function getBrowserGeolocation(timeoutInSeconds = 10)

// Example:

getBrowserGeolocation() //=> { latitude: 35.7402404, longitude: -82.3420191 }