My HTML5 app relies on Geolocation. In cases where the user denies permission for geolocation, I want to pass a default position object (latitude:0, longitude:0)
to ensure the app can still function.
I understand how to detect permission denial, but I'm not sure how to create the Position object in a way that it can be successfully passed into the following method:
$scope.setCurrentLocation = function(position) {
$scope.myposition = position.coords;
}