title: Sending URL to Google Maps from PHP with latitude and longitude values
body: <p>I am new to PHP coding. A PHP file in my server is receiving from a mobile client latitude and longitude values in a GET request. A URL is then being constructed to send the data to Google Maps to be displayed. Below is the code:</p>
  
  <pre><code>$getdata = http_build_query(
  array(
     'latitude' =&gt; $_GET["latitude"],
     'longitude'=&gt; $_GET["longitude"],
  )
  );
  $result=file_get_contents('http://maps.googlemaps.com/maps/geocode/json?'.$getdata)
  </code></pre>
  
  <p>Is this the right way to form the URL? Thank you in advance.</p>