Skip to content

Location Table Updates #91

@clairblacketer

Description

@clairblacketer

Location Table Updates


Proposal

Relevant table: Location

  • Add a country field
  • Add a way to capture region
  • Add latitude and longitude
  • The GIS workgroup will also have some changes they are interested in as well
Field Required Type Description
location_id Yes integer A unique identifier for each geographic location.
country No varchar(3) The ISO country code
address_1 No varchar(50) The address field 1, typically used for the street address, as it appears in the source data.
address_2 No varchar(50) The address field 2, typically used for additional detail such as buildings, suites, floors, as it appears in the source data.
city No varchar(50) The city field as it appears in the source data.
state No varchar(2) The state field as it appears in the source data.
zip No varchar(9) The zip or postal code.
county No varchar(20) The county.
region No varchar(50) The region field as it appears in the source data.
location_source_value No varchar(50) The verbatim information that is used to uniquely identify the location as it appears in the source data.
latitude No float The geocoded latitude
longitude No float The geocoded longitude

Conventions

  • The Country field will be based on the ISO's 3166-1 vocabulary, which officially designates 2- and 3-character codes for 249 countries. The alpha-3 set, which uses 3-characters, is the suggested version.
  • For standardized geospatial visualization and analysis, addresses need to be, at the minimum be geocoded into latitude and longitude. This allows it to put as a point on a map. This proposal is to add two fields, latitude and longitude to the location table.
  • We should allow regions to propose region-specific extensions to the CDM/vocabulary (needs elaboration)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions