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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:06:23+00:00 2026-05-26T23:06:23+00:00

I got a point with latitude and longitude using decimals. The point is centered

  • 0

I got a point with latitude and longitude using decimals. The point is centered in a circle, the radius of the circle is x km. How do I find the all latitudes and longitudes which covers in the circle?

  • 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-26T23:06:24+00:00Added an answer on May 26, 2026 at 11:06 pm

    Probably the easiest answer is using pythagoras.

    You got a point (x,y) which is the center of a circle of radius r.

    ‘How do I find the all latitudes and longitudes which covers in the circle?’ is almost infinite.

    Instead you would rather want to check if a center point is within the radius of a circle (guessing you want to figure out what locations are within k km of point (x,y)).

    Given point (x1,y1), you would do sqrt((x1-x)^2 + (y1-y)^2) (pythagoras theorem a^2 = b^2 + c^2) to find the distance from point (x,y) to point(x1,y1) and check if the distance is <= to radius r. Bounds are easily calculated (xmin = x-r, xmax = x+r etc.).

    In terms of actual distance, you would probably need to use the Haversine formula:

    a = sin²(Δlat/2) + cos(lat1).cos(lat2).sin²(Δlong/2)

    c = 2.atan2(√a, √(1−a))

    d = R.c

    where R is earth’s radius (mean radius = 6,371km) (d is distance);
    note that angles need to be in radians to pass to trig functions!

    More on that here http://www.movable-type.co.uk/scripts/latlong.html

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

Sidebar

Related Questions

I got a point with latitude 'x' and longitude 'y' using decimals. The point
At some point Find All References feature got broken for a single solution that
Case in point : I've got a handle to a window (for instance, using
I asked a question yesterday which got answers but didnt answer the main point.
I'm using the following code to turn user's IP into latitude/longitude information using the
I have got two WGS84 coordinates, latitude and longitude in degrees. These points are
I've got a table of points, each with a name, latitude, longitude, and an
I've got a list of ~5000 points (specified as longitude/latitude pairs), and I want
It is quite possible that I may not have got the point, but I
I just started reading Effective C++ today and got to the point where the

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.