Get current lat and lng from Google Geolocation API
<p>I have no problem getting the current lat and lng using javascript. But I would like to call the API link in PHP via file_get_contents as following:</p>

<pre><code>&lt;?php
$json = file_get_contents('https://www.googleapis.com/geolocation/v1/geolocate?key=Jsddds6s6sdht43asdsaASasta8962');
?&gt;
</code></pre>

<p>Current if I paste the URL in Chrome, I am getting <strong>Not Found</strong>. Why does this happened?</p>