title: Google MAP Geolocation API in PHP
body: <p>I call the Google MAP Geolocation API in PHP, to get the location by the cellTower information. However, when I change any of the cellTower information, I always get the same results: { "location": { "lat": 52.519171, "lng": 13.406091 }, "accuracy": 18000.0 }.</p>
  
  <p>Here is my PHP script, could anyone help to check where is the problem? Thank you.</p>
  
  <pre><code>    &lt;?php
      // The data to Google API
      $JsonData = array(
          'CellTowers' =&gt; array (
      'cellId' =&gt; 42,
      'locationAreaCode' =&gt; 415,
      'mobileCountryCode' =&gt; 310,
      'mobileNetworkCode' =&gt; 410
      ));
  
      // Create the context for the request
      $context = stream_context_create(array(
      'http' =&gt; array(
          'method' =&gt; 'POST',
          'header' =&gt; "Content-Type: application/json\r\n",
          'content' =&gt; json_encode($JsonData)
      )
      ));
  
      // Send the request
      $response = file_get_contents('https://www.googleapis.com/geolocation/v1/geolocate?key=', FALSE, $context);
  
      // Check for errors
      if($response === FALSE){
          die('Error');
      }
  
      echo $response;
      ?&gt;
  </code></pre>