Can I prompt a browser to get access to user location?

Curious as I have not found any related tickets to this issue.

One of the core aspects of this bot I am building involves directing a customer to one of our closest locations, of which we have more than a dozen.
I can prompt the user for their address and store that information, but I was wondering if there is any way to prompt the browser for user location, using JavaScript’s built in navigator object. The answer to the prompt(allow or not) will determine the following action my bot will take.

Is there a way to accomplish this using script nodes and more importantly is there a way to test this functionality on an unpublished bot?

Here is how I capture geolocations using context variables:
context.latitude = context.session.BotUserSession.lastMessage.messagePayload.meta.location.latitude;
context.longitude = context.session.BotUserSession.lastMessage.messagePayload.meta.location.longitude;

Not sure if this exactly answers your question, but I hope it helps.