Cordova Geolocation API works when GPS enabled on device or we can say that it will not provide you the exact position. We can provide manual lat long with out enable GPS. Cordova Geolocation API doesn't provide a way to check GPS enabled or not.
Now we have a plugin which checks GPS enable or not and we can notify user to enable the GPS.
This plugin supports Android and iOS platform.
To install the plugin we need to install the plugin through CLI :