[]previous and next page

GeoInfo

Where the visitor is, as the platform reports it.

Where the visitor is, as the platform reports it. A field is undefined when the platform sent no value for it. Read only by an adapter entry for that platform (see CreateFetchOptions.geo); a client's own headers are never a source.

Import#

ts
import type { GeoInfo } from "@shadow-js/dusk/server";

Signature#

ts
interface GeoInfo {
  readonly country: string | undefined;
  readonly region: string | undefined;
  readonly city: string | undefined;
  readonly latitude: number | undefined;
  readonly longitude: number | undefined;
  readonly timezone: string | undefined;
}

Members#

Name Type Description
country readonly country: string | undefined
region readonly region: string | undefined
city readonly city: string | undefined
latitude readonly latitude: number | undefined
longitude readonly longitude: number | undefined
timezone readonly timezone: string | undefined