title: Google Geocode API result displaying on map?
body: <p>I'm reading Google's API but see no examples there, and all the other Googled-by-me examples are a bit old (about 1-2 years old, most are API-key-based :S).</p>
  
  <p>I want a text input. Send button. And Iframe below.</p>
  
  <p>How to display location on the map using my own input?</p>
  
  <p>At this moment my iframe looks like that:</p>
  
  <pre><code>&lt;iframe width="230" height="180" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="&lt;?php echo $src ?&gt;"&gt;
  </code></pre>
  
  <p>Input:</p>
  
  <pre><code>&lt;input id="googleMaps" name="googleMaps" type="text" /&gt;
  </code></pre>
  
  <p>At this moment I"m trying with XML (but JSON is recommended as far as I know?), but I'm getting XML just text in my iframe, like:</p>
  
  <pre><code>This document had no style information.
  &lt;GeocodeResponse&gt;
  &lt;status&gt;
  OK
  &lt;/status&gt;
  &lt;result&gt;
  &lt;type&gt;
  locality
  &lt;/type&gt;
  &lt;type&gt;
  political
  &lt;/type&gt;
  &lt;formatted_address&gt;
  (...)
  </code></pre>
  
  <p>How to pass this data to Google and get map back? :)</p>
  
  <p>Thanks a lot.</p>