Skip to content

State Validation Fails if suburb is not providedΒ #2

@mellisdesigns

Description

@mellisdesigns

It looks like if you don't provide a suburb in the QLD 4000 chunk, the state is not extracted properly. Happy to tackle this one. πŸ’ƒ as google maps api does provide address that look like this.

The Current Output

parseLocation('123 Fake Street, QLD 4000, Australia')

{
  streetName: 'Fake',
  streetNumber: '123',
  streetType: 'ST'
}

Expected Output

parseLocation('123 Fake Street, QLD 4000, Australia')

{
  streetName: 'Fake',
  streetNumber: '123',
  streetType: 'ST',
  state: 'QLD',
  postcode: '4000'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions