interface UserLocation {
    city?: string;
    country?: string;
    region?: string;
    timezone?: string;
    type: "approximate";
}

Properties

city?: string

Free text input for the city of the user, e.g. San Francisco.

country?: string

The two-letter ISO country code of the user, e.g. US.

region?: string

Free text input for the region of the user, e.g. California.

timezone?: string

The IANA timezone of the user, e.g. America/Los_Angeles.

type: "approximate"

The type of location approximation. Always approximate.