साँचा:Great circle distance/doc
दिखावट
यह परिचयलेख साँचा:Great circle distance के लिए एक उपपृष्ठ है। यहाँ प्रयोगविधि, श्रेणियाँ और अन्य सामग्री रखी गई है जो मूल साँचा पन्ने का हिस्सा नहीं है। |
Usage
[सम्पादन]Computes the w:great circle distance between two points, specified by the latitude and longitude, using the w:haversine formula.
or
latitude 1
,longitude 1
,latitude 2
, andlongitude 2
are the coordinates of your point. They should be specified as w:decimal degrees, not in degree-minute-second (DMS) notation, and South and West latitude and longitude should be expressed as negative numbers. You can use {{Decdeg}} to convert from DMS to decimal notation (e.g. साँचा:Tlx yields [convert: invalid number]).
- The
radius of the planet in km
(r=
) parameter defaults the average radius of the earth between the latitudes of the input coordinates (using {{Great circle distance/er}}). Because the earth is an w:ellipsoid, not a perfect sphere, the further your points are from each other, the less accurate your answer will be. You can substitute this value for the radius at your midpoint, if known, or use any other value (for example, you could use 3390 if you want distances on w:Mars, or 6371 if you want to use the mean earth radius).
units
can be any unit recognized by Template:Convert.
precision
uses the same syntax as the unnamed precision parameter in Template:Convert.
TemplateData
[सम्पादन]Computes the great circle distance between two points, specified by the latitude and longitude, using the haversine formula.
पैरामीटर | विवरण | प्रकार | स्थिति | |
---|---|---|---|---|
Latitude 1 | lat1 1 | Latitude of point 1 in decimal degrees
| संख्या | आवश्यक |
Longitude 1 | long1 2 | Longitude of point 1 in decimal degrees
| संख्या | आवश्यक |
Latitude 2 | lat2 3 | Latitude of point 2 in decimal degrees
| संख्या | आवश्यक |
Longitude 2 | long2 4 | Longitude of point 2 in decimal degrees
| संख्या | आवश्यक |
Radius | r 5 | Radius of the planet in kilometers
| संख्या | वैकल्पिक |
Units | units | Units to output distance in (defaults to km). Can be any distance unit supported by [[:Template:Convert]]
| स्ट्रिंग | वैकल्पिक |