providers/google.js
function parseAddressComponents(components, short = Options.short) {
  const results = {}
  components.map(component => {
    if (short) { results[component.types[0]] = component.short_name
    } else { results[component.types[0]] = component.long_name }
  })
  return results
}
function parseAddressComponents(components, short = Options.short) {
  const results = {}
  components.map(component => {
    if (short) { results[component.types[0]] = component.short_name
    } else { results[component.types[0]] = component.long_name }
  })
  return results
}
function parseAddressComponents ( components , short = Options . short ) { const results = { } components . map ( component => { if ( short ) { results [ component . types [ 0 ] ] = component . short_name } else { results [ component . types [ 0 ] ] = component . long_name } } ) return results }
Parses Address Component into a single layer Object
Parses Address Component into a single layer Object