Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.
This repository was archived by the owner on May 5, 2022. It is now read-only.

Handle case where pre- and -post directional are same #784

@missinglink

Description

@missinglink

Heya,

I noticed a street name in the San Diego file today "S 39TH ST S" which has the "South" directional added twice:

cat us_ca_san_diego-addresses-county.geojson \
  | grep 'S 39TH ST S' \
  | jq '.properties.street'

"S 39TH ST S"

It seems that the error is caused by the source data including both pre (addrpdir) and post (addrpostd) directional columns with the value 'S':

ogr2ogr -f CSV /vsistdout/ addrapn_datasd.dbf \
  | xsv search -s 'objectid' '854155' \
  | xsv table

objectid  addrnmbr  addrfrac  addrpdir  addrname  addrpostd  addrsfx  addrunit  addrzip  add_type  roadsegid  apn         asource  plcmt_loc  community  parcelid  usng
854155    1261                S         39TH      S          ST                 92113              0          5512003800  M        C          SAN DIEGO  11648     11S MS 89683 17286

Would it be possible to add a check in machine which only adds one of these values to the street field when both are present?

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