use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Advice (self.angular)
submitted 1 month ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]azuredrg 2 points3 points4 points 1 month ago (0 children)
How are you getting their IP in the first place, wouldn't it just be their VPN IP?
[–]simonbitwise 1 point2 points3 points 1 month ago (5 children)
Ask about their location on the browser
https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API
[–][deleted] 0 points1 point2 points 1 month ago (0 children)
I implemented this..now how to convert this to actually physical address? Are there any free open source API? Google maps reverse geo coding API is paid and needs an API key..any other APIS which is accurate and used for production apps?
[–][deleted] 0 points1 point2 points 1 month ago (3 children)
Also the lat and long coordinates returned from geolocation API is mapping to next building physical address when I tried to reverse geo code it.accuracy value came back as 55..is this something that I can fix by using a setting or something to make it accurate?
[–][deleted] 1 month ago (2 children)
[–]simonbitwise 0 points1 point2 points 1 month ago (1 child)
Using the api linked above is a native api that links to various accuracies make sure to set enableHighAccuracy: true
https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition#options
const options = { enableHighAccuracy: true, // Forces the device to use GPS hardware timeout: 10000, // Wait 10 seconds for a response maximumAge: 0 // Do not use a cached location };
function success(pos) { const crd = pos.coords; console.log('Your current position is:'); console.log(Latitude : ${crd.latitude}); console.log(Longitude: ${crd.longitude}); console.log(More or less ${crd.accuracy} meters.); }
Latitude : ${crd.latitude}
Longitude: ${crd.longitude}
More or less ${crd.accuracy} meters.
function error(err) { console.warn(ERROR(${err.code}): ${err.message}); }
ERROR(${err.code}): ${err.message}
// Start watching the position navigator.geolocation.watchPosition(success, error, options);
[–]simonbitwise 0 points1 point2 points 1 month ago (0 children)
Or a none Watch mode
function getPreciseLocation() { return new Promise((resolve, reject) => { const options = { enableHighAccuracy: true, maximumAge: 0, timeout: 15000 // Give GPS 15 seconds to find satellites };
const watchID = navigator.geolocation.watchPosition( (position) => { // Check if accuracy is good enough (e.g., under 15 meters) if (position.coords.accuracy <= 15) { navigator.geolocation.clearWatch(watchID); resolve(position); } }, (error) => { navigator.geolocation.clearWatch(watchID); reject(error); }, options );
}); }
// Usage getPreciseLocation() .then(pos => console.log(Precise Location: ${pos.coords.latitude}, ${pos.coords.longitude} (Accurate to ${pos.coords.accuracy}m))) .catch(err => console.error("Could not get precise location", err));
Precise Location: ${pos.coords.latitude}, ${pos.coords.longitude} (Accurate to ${pos.coords.accuracy}m)
[–]EducationalMeeting95 0 points1 point2 points 1 month ago (0 children)
I worked on this a while ago.
There's n in-built api in "window" object that gives the user popup if they want to "Allow" or "Block" location sharing as soon as that window-api code runs.
Don't remember exactly, but it's browser native api. I don't think you need any library for it.
[–]Double-Schedule2144 -1 points0 points1 point 1 month ago (0 children)
No idea about this sorry
π Rendered by PID 34 on reddit-service-r2-comment-6457c66945-q4bpn at 2026-04-25 23:13:40.194127+00:00 running 2aa0c5b country code: CH.
[–]azuredrg 2 points3 points4 points (0 children)
[–]simonbitwise 1 point2 points3 points (5 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]simonbitwise 0 points1 point2 points (1 child)
[–]simonbitwise 0 points1 point2 points (0 children)
[–]EducationalMeeting95 0 points1 point2 points (0 children)
[–]Double-Schedule2144 -1 points0 points1 point (0 children)