title: Google geo api: How to handle if the client denied permission
body: <pre><code>    navigator.geolocation.getCurrentPosition(
        function(pos) {
          var fullpos = new google.maps.LatLng(pos.coords.latitude, pos.coords.longitude);
          computePartners(fullpos);
        }
      );
  </code></pre>
  
  <p>is what I have. It executes computePartners() if the client has allowed access for knowing where he is (getting clients physical position). But if it has not, I would like to make output an alert('Error'), example. How can i do this?</p>