We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e67c3d2 commit 6c44ddcCopy full SHA for 6c44ddc
packages/runtime/src/templates/edge/runtime.ts
@@ -18,8 +18,9 @@ export interface RequestData {
18
city?: string
19
country?: string
20
region?: string
21
- latitude?: string
22
- longitude?: string
+ latitude?: number
+ longitude?: number
23
+ timezone?: string
24
}
25
headers: Record<string, string>
26
ip?: string
@@ -67,6 +68,9 @@ const handler = async (req: Request, context: Context) => {
67
68
country: context.geo.country?.code,
69
region: context.geo.subdivision?.code,
70
city: context.geo.city,
71
+ longitude: context.geo.longitude,
72
+ latitude: context.geo.latitude,
73
+ timezone: context.geo.timezone,
74
75
76
const requestId = req.headers.get('x-nf-request-id')
0 commit comments