title: How to extract zip code values from react-geosuggest?
body: <h1>Short description</h1>
  
  <p>I am trying to capture the City, State, &amp; Zipcode value from the results provided by the <code>onSuggestSelect</code> prop using the <code>npm react-geosuggest</code> component. You can find info about it here: <a href="https://www.npmjs.com/package/react-geosuggest" rel="nofollow noreferrer">https://www.npmjs.com/package/react-geosuggest</a></p>
  
  <h1>Expected results</h1>
  
  <p>I created a handler to process the changes returned by <code>onSuggestSelect</code> and in that handler I am trying to capture the data I need to persist it into state. Using the following:</p>
  
  <pre><code>handleOnSuggestSelect(suggestion) {
    this.setState({
      address: suggestion.label
    });
  }
  </code></pre>
  
  <p>I expected that the suggestion.label value would store the entire address as such:
  <code>1234 Maple Street, Miami, FL, 33010, USA</code></p>
  
  <h1>Actual results</h1>
  
  <p>Instead of <code>1234 Maple Street, Miami, FL, 33010, USA</code>, what I saw was that a value of: <code>1234 Maple Street, Street</code> showed up instead. Why does the value of <code>,Street</code> show up after the initial street address instead of the rest of the expected info (city, state, zip)?</p>
  
  <h1>Additional Information</h1>
  
  <p>How do I get the different address components from the label? Especially the city, state, and zip code?</p>
  
  <p>You can see how I have the <code>react-geosuggest</code> component set up as described in the answer I posted here: <a href="https://stackoverflow.com/questions/44235691/get-input-value-of-react-geosuggest-input-field/54045181#54045181">Get input value of react-geosuggest input field</a></p>