Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GeographicDivision

import type { GeographicDivision } from "https://googleapis.deno.dev/v1/civicinfo:v2.ts";

Describes a political geography.

interface GeographicDivision {
alsoKnownAs?: string[];
name?: string;
officeIndices?: number[];
}

§Properties

§
alsoKnownAs?: string[]
[src]

Any other valid OCD IDs that refer to the same division.\n\nBecause OCD IDs are meant to be human-readable and at least somewhat predictable, there are occasionally several identifiers for a single division. These identifiers are defined to be equivalent to one another, and one is always indicated as the primary identifier. The primary identifier will be returned in ocd_id above, and any other equivalent valid identifiers will be returned in this list.\n\nFor example, if this division's OCD ID is ocd-division/country:us/district:dc, this will contain ocd-division/country:us/state:dc.

§
name?: string
[src]

The name of the division.

§
officeIndices?: number[]
[src]

List of indices in the offices array, one for each office elected from this division. Will only be present if includeOffices was true (or absent) in the request.