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

  • SEARCH
  • Home
  • 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 6169809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:55:14+00:00 2026-05-23T22:55:14+00:00

We are developing a live-stream, browser based racing game. Our contenders will start to

  • 0

We are developing a live-stream, browser based racing game. Our
contenders will start to race from a START point and first contender
who check-in in STOP venue will won race.

For example this venue will be our STOP venue : https://foursquare.com/venue/2154697

But there is a problem. For example now i’m 1.3km far away from STOP
venue but i can check-in and i can win race 🙂 So i have to calculate
distance and if distance is lower than 100meters, contender will win.

How can we do it ?

In shortly, i have to verify, contender is really in this venue.

  • 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-23T22:55:15+00:00Added an answer on May 23, 2026 at 10:55 pm

    I would suggest that you not use the check in feature to determine a win for exactly the reasons you mention above. Rather, I would suggest that you pull the winning location from foursquare, and then use a native lookup of the device’s lat/long to compare to.

    If you are making a browser based game, you can pull GPS info directly in JS in most modern OS’s browsers (iOs, Android, Palm, etc). Almost all app frameworks support this now as well. While GPS lookup in the browser is a legitimate spec, there are handy JS warpers that help with cross compatibility like this one [[ http://code.google.com/p/geo-location-javascript/ ]]

    So now that you know the ‘destination’ lat/lon and the true position of the player, you can calculate the delta from the location with some trigonometry. Remember though that the lat and log deltas themselves are not as simple as subtraction, as you are playing on a curved surface. The good news is that this stackOverflow article covers how to do this [[ Calculate distance between 2 GPS coordinates ]]

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

Sidebar

Related Questions

When developing (works fine live) the pages for our website don't pick up the
I am developing a live-action tag game (called DeTag) that uses a web interface
I'm developing a simple Facebook app that will live in a Page's tab. I'm
I am developing a piece of software that records video from a live source
I'm developing an application in which 2D animations will be displayed over a live-camera
I'm developing a live wallpaper app which will draw an analog clock. So far
I am developing iphone application which requires live video stream (Flash or any other)
I will be developing apps using both my own Live ID and one specific
Developing a heavily XML-based Java-application, I recently encountered an interesting problem on Ubuntu Linux.
When developing whether its Web or Desktop at which point should a developer switch

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.