title: Address
type: object
description: Represents a physical address associated with a location.
required:
  - line_1
  - postal_code
  - country
properties:
  line_1:
    type: string
    description: Generally speaking this is used for the street address.
    example: 8 Marina View
    minLength: 1
    maxLength: 255
  line_2:
    type:
      - string
      - 'null'
    description: Generally speaking this is used for unit/floor numbers.
    example: 'Unit #10-22'
    minLength: 1
    maxLength: 255
  city:
    type:
      - string
      - 'null'
    description: 'The city associated with the address, if known and supported.'
    example: Downtown Core
    minLength: 1
    maxLength: 255
  state:
    type:
      - string
      - 'null'
    description: 'The state associated with the address, if known and supported.'
    example: Central
    minLength: 1
    maxLength: 255
  postal_code:
    type: string
    description: The postal code associated with the address.
    example: '018960'
    minLength: 1
    maxLength: 255
  country:
    $ref: ./CountryCode.yaml
    description: The ISO 3166-1 alpha-2 country code associated with the address.
  coordinates:
    readOnly: true
    $ref: ./Coordinates.yaml
    description: The coordinates associated with the address.
  notes:
    type:
      - string
      - 'null'
    minLength: 1
    maxLength: 255
    example: Beware of the dog.
    description: The notes (if any) associated with the address.
x-tags:
  - Models
