title: Geolocation prompt dialog in Chrome, how do I implement that?
body: <p>I need to implement the prompt dialog for device geographical location in web browsers and I'm kinda struggling on how to do it. I have this JavaScript code:</p>
  
  <pre><code>if (navigator.geolocation) {
    // Prompt for permision
    navigator.geolocation.getCurrentPosition()
    } 
  else {
      alert('Please allow your location in order for app to work 
      properly.');
    }
  </code></pre>
  
  <p>but <code>getCurrentPosition</code> requires at least 1 argument and I can't seem to get it working.</p>
  
  <p>All the JavaScript code that I've found online worked just fine, but all of them were writing in the console <code>Your latitude is:</code> and <code>Your longitude is:</code> but I don't need that.</p>
  
  <p>I need for web browser to just remember the geographical location so I can use the coordinates later in Foursquare API. I don't need for the browser to write anything in the web browser's console.</p>