How to calculate the radians between two coordinate points on the sphere of the earth

Source: Internet
Author: User

How to calculate the radians between two coordinate points on the sphere of the earth

First, check that you have read the following articles by the blogger:

[Google
Map: calculate the distance between two points based on the dimension, and calculate the latitude and longitude of the target location based on the latitude and longitude.

Http://blog.csdn.net/ghlfllz/article/details/6097637

[Google
Map: how to obtain a Square area based on the coordinate origin (longitude and latitude) and distance Value

Http://blog.csdn.net/ghlfllz/article/details/6097749


Based on the descriptions in the previous two articles, calculate the distance between the two coordinates, in meters,

Generally, the earth's equator radius is 6378137 meters, the Earth's polar radius is 6356725 meters, and the Earth's average radius is 6371004 meters.


We know that the Radian of a circle is 2pai, and the formula for calculating the circumference of the circle is: circumference = 2pai * radius,
It can be inferred that the radian formula is: radian = radius/perimeter


Therefore, the radian distance between two coordinate points is: distance (meter)/6371004.

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.