Hello #rustlang people, I would appreciate a hint if anyone is aware of a non-invasive, privacy respecting geolocation crate? I seem to be picking the wrong terms or it just is an impossible combination in the first place?

My first idea of using https://beacondb.net/ does not seem to pan out.

beaconDB

The actual answer to this is not what you would expect:

- https://crates.io/crates/iana-time-zone
- https://crates.io/crates/isocountry

Those together provide sufficient information, and you can even ask the users permission to do so.

So its more like localization to region estimation.

If you want to use beacon based location, that just doesn't exist in Rust.

Solved. khop khun khrap

crates.io: Rust Package Registry

crates.io serves as a central registry for sharing crates, which are packages or libraries written in Rust that you can use to enhance your projects

@danielsreichenbach by definition there is no privacy-respecting way of doing geolocation. What is the purpose? What do you need it for? That is the question I think.
@Katie_Luise it's simple, I have a service that requires a country to be set in the clients request. No country means potentially longer routes and hours of time lost for the user. I can not change the way the service operates.

@Katie_Luise While I agree that one should always ask the question why one needs personal information like geolocation. Privacy does require an answer to "why".

For context:

- routing for many CDN services is based on having some geo information, a country or a continent usually is sufficient
- a sole person does not have any leverage against a billion dollar company to change this

Anycast - Wikipedia

@Katie_Luise I know Anycast. Like I said, I can not change the service side. I have no means of introducing Anycast in the project.
@danielsreichenbach logging IP and doing the rest then is only solution. In principle IP logging is already privacy invasion so there's no way to achieve this goal without some privacy invasion. Just put into terms and conditions.

@Katie_Luise I know, it is already in the terms of service, and has millions of users. I am literally just trying to replace a horrible vendor of geolocation information with a community driven one here.

I did ask for practical help, not for a lesson or philosophy. My original request already made it clear I am trying to strike a balance here...

@danielsreichenbach there is no perfect solution. Type the following into Gemini Pro or Claude Opus:

I have an online service. What is the best way to determine routes to the client without privacy invasion?

(RFC 8805 seems to be the best)

@danielsreichenbach your original question expressed the desire to track on people while hiding behind a veil of being deeply concerned about privacy. #narcissistic behaviour but go on keep up the stupid questions. I guess you know how to Google things for yourself so stop baiting people who are trying to be helpful. If you can't find the answer you're either baiting or asking the wrong question. Also your "service with millions of users" sounds like it doesn't exist. If it does you'll name it.

@Katie_Luise funny tangent 😆 I wish I could tell more but there is such a thing as NDAs. I rarely ever am allowed to name the companies contracting me.

As I said earlier, it's about sending a country to a service for downloading applications. That service does not support Anycast, it just accepts a country header, or also a region.

This is strictly work, I am a contractor. I can work, or not eat food.

@danielsreichenbach nice so you work for Palantir or some other defense stuff. Or more likely, perhaps certainly, you're making it up. There are no companies which forbid people from letting others know where they work. Not even Palantir.

@Katie_Luise this is getting unhinged. A non-disclosure agreement is a common addendum to contracts, especially for IT contractors. This usually comes with cool down periods after a contract ends. For this specific one I can tell you who it was in about five years, so please wait.

This also tells you it is not a defense contract because laws forbid you from talking about this. Typically not even to your marriage partner.

Feel free to unfollow. I am not going to block you for being out of line.

@danielsreichenbach 100% bullshit also. 100% gaslighting crap. This is my last comment.
@danielsreichenbach 100% bullshit. Also someone working with "millions of users" would not ask such dumb questions without first doing basic googling. I stand by my claim of 100% bullshit.

@Katie_Luise just considered that sometimes it is more fun to talk to people about something than to use a search engine.

Just to be clear: I did my research. What I am looking for does not exist, and I asked here for the off chance that someone may be building it or also need it.

Like I said, you can leave any time.

@Katie_Luise I have seen you come into my work related discussions a bunch of times trying to frame technical discussions in what feels like your personal vendettas.

If nobody has even told you that: you are rude. Extremely so.

I am fine with discussing the philosophy behind some technical topics, but I expect a certain amount of decorum in conversation.

If you live in a world where you can publicly act and talk to people like this, I am happy for you. I can not afford that kind of attitude.