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

I am writing a program that will draw a solid along the curve of
What are ways to draw animations in C++? GDI+? OpenGL? Would you recommend a
Where do you draw the line to stop making abstractions and to start writing
How can I draw something in JPanel that will stay the same and not
How would one draw an oval in JS?
How do you draw a custom button next to the minimize, maximize and close
I'm trying to draw a polygon using c# and directx All I get is
I'm trying to draw a graph on an ASP webpage. I'm hoping an API
I need to draw some simple network topology charts, suggestions of some good tools
I want to draw DirectX content so that it appears to be floating over

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.