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 8393387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:46:13+00:00 2026-06-09T19:46:13+00:00

I am currently writing a script to find the closest GeoPoint (from a list

  • 0

I am currently writing a script to find the closest GeoPoint (from a list of GeoPoints located on our servers) relative to the user, however I came across and interesting idea on limiting results even further.

I am wondering if it is possible to take the Users current line-of-site, maybe using the Compass in order to ignore GeoPoint(s) that may or may not be closer to the user located behind them. I am not looking for this code to be written for me, just a nudge in the right direction or any suggestions, I have searched for the past couple days and am coming up empty.
When I say “line-of-site” I don’t mean to specify a cone as shown below, limiting to a direction of N, S, E or W would be fine.

In the exmaple picture below I want the results to show only GeoPoint(2):

Explanation of use: The user goes to a location to take photos of several things at said location. In my Camera Activity I am writing a script to show a historic photo of one of the elements on-site relative to their location. All site-specific historic photos and their Coordinates have been retrieved and parsed using JSON.

  • 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-06-09T19:46:14+00:00Added an answer on June 9, 2026 at 7:46 pm

    Have a look at http://www.movable-type.co.uk/scripts/latlong.html. It gives a number of examples including how to calculate bearing and distance to a point (longitude, latitude).

    Check the bearing and distance fall within your acceptable range, whatever that may be (direction, line of sight…).

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

Sidebar

Related Questions

I'm currently writing a Powershell script that's used to select a user from Active
I am currently writing a script which parses the ServiceTage, Computername and Username from
I'm currently writing a script editing app in c# to edit game scripts. I
well i am currently writing a script that is meant to check the logs
I'm currently writing a PHP script for a guestbook in PHP where people can
I'm currently writing a ToDo-Script for a project i have running. Now there is
Background : I'm currently writing a greasemonkey script that embeds/modifies a specific page's html.
I am currently re-writing my functions script (PHP) for my login system. Is the
Hello Im currently writing a product syncronisation script for magento. I know how to
I'm currently writing a simple batch script to set the DNS of a LAN

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.