If you know how the latitude and longitude of two points calculate the distance between two points

Source: Internet
Author: User

Longitude at the same latitude (except for the Equator)
H x 111 X cosd = g (H = longitude difference between two locations d = local geographic latitude G = actual distance)

Cross-latitude triangle
For example, AB has two different longitude and latitude (a longitude and B latitude)
First, we can calculate the distance between the latitude B 'that is collocated with the point. After calculating the distance between A and B, we can obtain the result by using the stock theorem.

In short, the following general formulas are available:
Formula for distance between two points on the earth:
The longitude of the earth is A1 and A2 (positive E and negative W), and the latitude is B1 and B2 (positive N and negative S ).
Make a0 = (A1-A2) limit 2, b0 = (BI-B2) limit 2
F = √ sinb0 × sinb0 + cosb1 × cosb2 × sina0 × sina0

Then
1. linear distance between two points = 2fr
2. Minimum spherical distance between two points = arcsinf degrees 90 ° × degrees R (angle)
3. Minimum spherical distance between two points = arcsinf × 2R (radian)

Note: E, W, N, S = east-west north, r = Earth's radius; √ = root number; region = circumference rate.
Enter the formula and calculate it by yourself.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.