Vorlage:Entfernung

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „<noinclude> Input: Geokoordinate 1 {{{1}}} Geokoordinate 2 {{{2}}} Output: Entfernung=ARCCOS[ SIN(Breite1)*SIN(Breite2) + COS(Breite1)*COS(Breite2)…“)
 
Zeile 1: Zeile 1:
<noinclude>
+
<includeonly>{{#geodistance:{{{1}}}|{{{2}}}|unit=km}}</includeonly><!--<noinclude>
 
  Input:  Geokoordinate 1 {{{1}}}
 
  Input:  Geokoordinate 1 {{{1}}}
 
         Geokoordinate 2 {{{2}}}
 
         Geokoordinate 2 {{{2}}}
Zeile 9: Zeile 9:
 
Linnich<br>
 
Linnich<br>
 
Geo: {{#show: Linnich|?Geo}}<br />
 
Geo: {{#show: Linnich|?Geo}}<br />
k1: {{#vardefine:k1|{{#geocode:{{#show: Linnich|?Geo}}|format=float|directional=no}}}}{{#var:k1}}<br>
+
k1: {{#vardefine:k1|{{{2}}}|format=float|directional=no}}}}{{#var:k1}}<br>
 
b1: {{#vardefine:b1|{{#explode:{{#var:k1}}|,|0}}}}{{#var:b1}}<br>
 
b1: {{#vardefine:b1|{{#explode:{{#var:k1}}|,|0}}}}{{#var:b1}}<br>
 
l1: {{#vardefine:l1|{{#explode:{{#var:k1}}| |1}}}}{{#var:l1}}<br>
 
l1: {{#vardefine:l1|{{#explode:{{#var:k1}}| |1}}}}{{#var:l1}}<br>
Zeile 17: Zeile 17:
 
Aachen<br>
 
Aachen<br>
 
{{#show: Aachen|?Geo}}<br>
 
{{#show: Aachen|?Geo}}<br>
k2: {{#vardefine:k2|{{#geocode:{{#show: Aachen|?Geo}}|format=float|directional=no}}}}{{#var:k2}}<br>
+
k2: {{#vardefine:k2|{{{2}}}|format=float|directional=no}}}}{{#var:k2}}<br>
 
b2: {{#vardefine:b2|{{#explode:{{#var:k2}}|,|0}}}}{{#var:b2}}<br>
 
b2: {{#vardefine:b2|{{#explode:{{#var:k2}}|,|0}}}}{{#var:b2}}<br>
 
l2: {{#vardefine:l2|{{#explode:{{#var:k2}}| |1}}}}{{#var:l2}}<br>
 
l2: {{#vardefine:l2|{{#explode:{{#var:k2}}| |1}}}}{{#var:l2}}<br>
Zeile 26: Zeile 26:
  
 
Entfernung: {{#expr:{{#expr:6378.137*acos(sin{{#var:bb1}}*sin{{#var:bb2}}+cos({{#var:bb1}})*cos{{#var:bb2}}*cos({{#var:ll2}}-{{#var:ll1}}))}} round 2}} km
 
Entfernung: {{#expr:{{#expr:6378.137*acos(sin{{#var:bb1}}*sin{{#var:bb2}}+cos({{#var:bb1}})*cos{{#var:bb2}}*cos({{#var:ll2}}-{{#var:ll1}}))}} round 2}} km
</noinclude><includeonly>{{#vardefine:b1|{{#explode:{{{1|}}}|,|0}}}}{{#vardefine:l1|{{#explode:{{{1|}}}| |1}}}}{{#vardefine:bb1|{{#expr:{{#var:b1}}*pi/180}}}}{{#vardefine:ll1|{{#expr:{{#var:l1}}*pi/180}}}}{{#vardefine:b2|{{#explode:{{{2|}}}|,|0}}}}{{#vardefine:l2|{{#explode:{{{2|}}}| |1}}}}{{#vardefine:bb2|{{#expr:{{#var:b2}}*pi/180}}}}{{#vardefine:ll2|{{#expr:{{#var:l2}}*pi/180}}}}{{#expr:{{#expr:6378.137*acos(sin{{#var:bb1}}*sin{{#var:bb2}}+cos({{#var:bb1}})*cos{{#var:bb2}}*cos({{#var:ll2}}-{{#var:ll1}}))}} round 2}}</includeonly>
+
</noinclude><includeonly>{{#vardefine:b1|{{#explode:{{{1|}}}|,|0}}}}{{#vardefine:l1|{{#explode:{{{1|}}}| |1}}}}{{#vardefine:bb1|{{#expr:{{#var:b1}}*pi/180}}}}{{#vardefine:ll1|{{#expr:{{#var:l1}}*pi/180}}}}{{#vardefine:b2|{{#explode:{{{2|}}}|,|0}}}}{{#vardefine:l2|{{#explode:{{{2|}}}| |1}}}}{{#vardefine:bb2|{{#expr:{{#var:b2}}*pi/180}}}}{{#vardefine:ll2|{{#expr:{{#var:l2}}*pi/180}}}}{{#expr:{{#expr:6378.137*acos(sin{{#var:bb1}}*sin{{#var:bb2}}+cos({{#var:bb1}})*cos{{#var:bb2}}*cos({{#var:ll2}}-{{#var:ll1}}))}} round 2}}</includeonly>-->

Version vom 23. März 2014, 17:46 Uhr

Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Adressen
Lebensmittel
Tierfutter
Schilddrüse
Öffentlichkeitsarbeit
Medien
Wissenschaft
Jodgeschichten
Wiki
Werkzeuge