title: Extract house address city and zip from an address in Python
body: <p>I have variable address strings such as this:</p>
  
  <pre><code>1234 Maple Ave. Queens, NY 11011
  </code></pre>
  
  <p>This format varies from string to string so I can use simple string parsing/splitting.
  Is there any way I can connect to google maps or some other api that will look up the address and give me all the address units separately?</p>
  
  <p>Ideally I should be able to do something like:</p>
  
  <pre><code>&gt;&gt; address = "1234 Maple Ave. Queens, NY 11011"
  &gt;&gt; data = maps_api.extract_data(address)
  &gt;&gt; print data.house_number
  &gt;&gt; 1234 Maple Ave. 
  &gt;&gt; print data.city
  &gt;&gt; Queens
  &gt;&gt; print data.state
  &gt;&gt; NY
  &gt;&gt; print data.zip
  &gt;&gt; 11011
  </code></pre>