IncomingRequestCfPropertiesGeographicInformation
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8109
Geographic data about the request’s origin.
Properties
Section titled “Properties”
optionalcity:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8139
The city the request originated from
Example
Section titled “Example”"Austin"continent?
Section titled “continent?”
optionalcontinent:ContinentCode
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8133
A two-letter code indicating the continent the request originated from.
Example
Section titled “Example”"AN"country?
Section titled “country?”
optionalcountry:Iso3166Alpha2Code|"T1"
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8121
The ISO 3166-1 Alpha 2 country code the request originated from.
If your worker is configured to accept TOR connections, this may also be "T1", indicating a request that originated over TOR.
If Cloudflare is unable to determine where the request originated this property is omitted.
The country code "T1" is used for requests originating on TOR.
Example
Section titled “Example”"GB"isEUCountry?
Section titled “isEUCountry?”
optionalisEUCountry:"1"
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8127
If present, this property indicates that the request originated in the EU
Example
Section titled “Example”"1"latitude?
Section titled “latitude?”
optionallatitude:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8151
Latitude of the incoming request
Example
Section titled “Example”"30.27130"longitude?
Section titled “longitude?”
optionallongitude:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8157
Longitude of the incoming request
Example
Section titled “Example”"-97.74260"metroCode?
Section titled “metroCode?”
optionalmetroCode:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8183
Metro code (DMA) of the incoming request
Example
Section titled “Example”"635"postalCode?
Section titled “postalCode?”
optionalpostalCode:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8145
Postal code of the incoming request
Example
Section titled “Example”"78701"region?
Section titled “region?”
optionalregion:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8170
If known, the ISO 3166-2 name for the first level region associated with the IP address of the incoming request
Example
Section titled “Example”"Texas"regionCode?
Section titled “regionCode?”
optionalregionCode:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8177
If known, the ISO 3166-2 code for the first-level region associated with the IP address of the incoming request
Example
Section titled “Example”"TX"timezone?
Section titled “timezone?”
optionaltimezone:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8163
Timezone of the incoming request
Example
Section titled “Example”"America/Chicago"