Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7626619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:21:00+00:00 2026-05-31T05:21:00+00:00

Using geolocation data of websocket users on a specific server, I’m trying to restrict

  • 0

Using geolocation data of websocket users on a specific server, I’m trying to restrict visibility of chat comments sent through the websocket. The websocket would look something like this:

http://html5demos.com/web-socket

I’m trying to restrict the visibility of the comments to only those simultaneously viewing the chat room who are in a defined proximity to one another (say, 100 feet).

How would I use the geolocation data of users pulled from something like this:

http://html5demos.com/geo

and use it to restrict the visibility of chat comments sent by a single user to only those viewing the same websocket who are within 100 feet of this user?

Anything pointing me in the right direction would be helpful.

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:21:01+00:00Added an answer on May 31, 2026 at 5:21 am

    Use navigation.getlocation API to get the user location:

    https://developer.mozilla.org/En/Using_geolocation

    Send the location of all users to the server via websocket.

    Filter passed through messages at the server end by calculating distance difference between different users.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using HTML5 geolocation to collect the users lat / long and I need
Goal: To render a google map using geolocation. I am trying to implement the
i am using mysql to store geolocation data. i would like to know how
My web app allows users to record their geolocation data. I need to somehow
I need to test a JS geolocation functionality with Selenium and I am using
using (var file_stream = File.Create(users.xml)) { var serializer = new XmlSerializer(typeof(PasswordManager)); serializer.Serialize(file_stream, this); file_stream.Close();
Using PHP, I can convert MySQL data or static table data to csv, Excel,
I am currently using geolocation to get the user's country name. Here is my
I am developing a website that relies on pulling the geolocation data of a
I am developing a PhoneGap application with JQuery mobile which requires geolocation data. Currently

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.