
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
- Is Quick Start for function creation wor...
I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start ...
- Connecting server functions to GitHub re...
The project I am working in has recently moved organizations on Appwrite. The same is true for the repo on GitHub, which as moved from a private user to a organ...
- Missing C++ libstdc library in Python fu...
I have a function running Python 3.12 which suddenly started dumping errors (as of today; it worked yesterday). I hadn't changed any code so I found this odd, b...
