
I want to get users location server side. Looking at documentation the locale.get() doesn't ask for user ID or any other details? What users locale will it provide ?
I am trying to restrict access to information based of user location. A request document is created in a collection and information is populated in the document basis country by a cloud function.

That API grabs the IP address of the requester and looks up the location based on the IP. If you're making the API call from some other server the request will come from your server rather than the end user.

So calling locale.get server side (using appwrite functions) would return location of the server then ? Not sure I understand the use case of that..
So ideally locale should be used client side only

Yes. The common use case is for api calls to be made from the client

[Solved] How to use Locale service, server side ?
Recommended threads
- Checkout error: Error: Request body is e...
Im absolutely stumped here. ```Initializing Stripe functionality... stripe.ts:74 Calling Appwrite function with payload: {price_id: 'price_1RdZzoDCvcSnLsdCCu8z3...
- Clarification Needed on Custom Domains a...
Hello, I need help configuring custom domains/subdomains in Appwrite: 1. **Current Setup**: - Transferred `mydomain.com` to Appwrite via nameservers ...
- Site don't have Permission?
https://discord.com/channels/564160730845151244/564160731327758347/1386878747902476489 I'm on a self hosted Instance of Appwrite 1.7.4 and getting this error o...
