No you cant prevent the prompt, its a security feature cause not every user wanna share its location.
From the W3C docs:
A conforming implementation of this specification must provide a mechanism that protects the user's privacy and this mechanism should ensure that no location information is made available through this API without the user's express permission.
But you can try to use a service like geoip in the error callback.