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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:36:30+00:00 2026-05-13T01:36:30+00:00

How do you draw the curve representing the shortest distance between 2 points on

  • 0

How do you draw the curve representing the shortest distance between 2 points on a flat map of the Earth?

Of course, the line would not be a straight line because the Earth is curved. (For example, the shortest distance between 2 airports is curved.)

EDIT: THanks for all the answers guys – sorry I was slow to choose solution :/

  • 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-13T01:36:30+00:00Added an answer on May 13, 2026 at 1:36 am

    I get this sort of information from the Aviation Formulary.

    In this case:

    Distance between points

    The great circle distance d between
    two points with coordinates
    {lat1,lon1} and {lat2,lon2} is given
    by:

    d=acos(sin(lat1)*sin(lat2)+cos(lat1)*cos(lat2)*cos(lon1-lon2))

    A mathematically equivalent formula,
    which is less subject to rounding
    error for short distances is:

    d=2*asin(sqrt((sin((lat1-lat2)/2))^2 +
    cos(lat1)*cos(lat2)*(sin((lon1-lon2)/2))^2))

    And

    Intermediate points on a great circle

    In previous sections we have found
    intermediate points on a great circle
    given either the crossing latitude or
    longitude. Here we find points
    (lat,lon) a given fraction of the
    distance (d) between them. Suppose the
    starting point is (lat1,lon1) and the
    final point (lat2,lon2) and we want
    the point a fraction f along the great
    circle route. f=0 is point 1. f=1 is
    point 2. The two points cannot be
    antipodal ( i.e. lat1+lat2=0 and
    abs(lon1-lon2)=pi) because then the
    route is undefined. The intermediate
    latitude and longitude is then given
    by:

        A=sin((1-f)*d)/sin(d)
        B=sin(f*d)/sin(d)
        x = A*cos(lat1)*cos(lon1) +  B*cos(lat2)*cos(lon2)
        y = A*cos(lat1)*sin(lon1) +  B*cos(lat2)*sin(lon2)
        z = A*sin(lat1)           +  B*sin(lat2)
        lat=atan2(z,sqrt(x^2+y^2))
        lon=atan2(y,x)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would you draw a line connector between two shapes, such that the line
I need to draw a line in my website, actually a curve representing a
Basically I wish to draw a curve between 3 points in openGL as the
I have a task - draw smooth curve input: set of points (they added
How can I draw Quadratic Curve through 3 points by using C# System.Drawing namespace?
I need to draw a curve smoothly through N points with N>2 with Javascript.
I have a set of points and i want to draw a curve which
i want to smooth and curve draw line on finger touch and using only
I've got an array of Point-objects and draw a curve using graphics.Draw(pen, points); What
How I can draw bezier curve in canvas. I have only start point and

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.