Skip to content

"sub-outcode" method #3

@billinghamj

Description

@billinghamj

I've just started integrating a new data set into one of our systems, and sigh the postcode mappings use a funky version of standard outcodes.

For most cases, the full outcode is correct. e.g.:

  • AB1 1AB -> AB1
  • AA11 1AA -> AA11

But for the few London outcodes which end with letters, the letter is excluded. e.g.:

  • EC1V 1AA -> EC1
  • AA1A 1AA -> AA1

This seems like something useful to support in postcode.js. The only issue is I'm not sure what this would be called. It's not documented anywhere from what I can tell.

Any opinions/ideas naming-wise? I'll submit a PR once a name is figured out.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions