Files
vercel/packages/edge/docs/interfaces/Geo.md
Paul Scanlon 62283356b8 feat: add flag to geolocation (#10443)
Co-authored-by: Chris Barber <chris.barber@vercel.com>
2023-09-19 16:25:46 -05:00

2.1 KiB

Interface: Geo

The location information of a given request.

Table of contents

Properties

Properties

city

Optional city: string

The city that the request originated from.

Defined in

packages/edge/src/edge-headers.ts:50


country

Optional country: string

The country that the request originated from.

Defined in

packages/edge/src/edge-headers.ts:53


countryRegion

Optional countryRegion: string

The region part of the ISO 3166-2 code of the client IP. See docs.

Defined in

packages/edge/src/edge-headers.ts:64


flag

Optional flag: string

The flag emoji for the country the request originated from.

Defined in

packages/edge/src/edge-headers.ts:56


latitude

Optional latitude: string

The latitude of the client.

Defined in

packages/edge/src/edge-headers.ts:67


longitude

Optional longitude: string

The longitude of the client.

Defined in

packages/edge/src/edge-headers.ts:70


region

Optional region: string

The Vercel Edge Network region that received the request.

Defined in

packages/edge/src/edge-headers.ts:59