Jump to content

GeoHack

From mediawiki.org
Revision as of 03:23, 26 March 2009 by Dispenser (talk | contribs) (Begin skeleton, contributions are to be in the public domain so they can be moved around easily)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Query

altpage (disabled)
Request a different page than Template:GeoTemplate
language
pagename
params
title

params

The D_M_S_N_D_M_S_E, D_M_N_D_M_E, D_N_D_E, or D;D where D is degrees, M is Minutes, S is second, and NS/EW are the directions

default
default scale
globe
page (unable)
specify a subpage for map sources
region
scale
type


Replacement variables

WGS84 Positioning
  • {latdegdec}, {londegdec}
  • {latdegdecabs}, {londegdecabs}
  • {latdeground}, {londeground}
  • {latdegroundabs}, {londegroundabs}
  • {latdeg_outer_abs}, {londeg_outer_abs}
  • {latdegabs}, {londegabs}
  • {latantipodes}, {longantipodes}
  • {londegneg}
  • {latdegint}, {londegint}
  • {latmindec}, {lonmindec}
  • {latminint}, {lonminint}
  • {latsecdec}, {lonsecdec}
  • {latsecint}, {lonsecint}
  • {latNS}, {lonEW}
UTM Positioning
  • {utmnorthing}, {utmeasting}, {utmzone}
  • {utm33northing}, {utm33easting}
National Grids
  • {osgb36ref}
  • {osgb36northing}, {osgb36easting}
  • {ch1903northing}, {ch1903easting}
Scaling
name used by internal conversion[1] units notes
{scale} Virtual Globe Use scale: or from dictionary look using type: value
{mmscale} Multimap Dictionary-like lookup
{altitude} MSN Maps, Fourmilab, Swissinfo int( scale * 143/1000000 ), [1, infinity]
{zoom} MapQuest, Gule Sider int(18.0 - log(scale)), [0,9]
{osmzoom} OpenStreetMap, Live Search Maps 18 - ( round(log(scale,2) - log(1693,2)) ), [2, 18]
{span} Google Maps, WikiMapia scale * 1.0 / 1000000 degrees FIXME calibration
Geographical features
  • {type}
  • {region}
  • {globe}
Coordinate title
  • {pagename}
  • {title}
Misc./Not fully implemented
  • {page} - Deprecated
  • {geocountry} - same as region:
  • {geoa1} - Characters 4 to 8 of region:; Uppercased

Section codes

<div id="GEOTEMPLATE-LOCAL" />
<div id="GEOTEMPLATE-XX">
...
</div>


Notes

  1. Many of these conversion are guessed from input values

Maintainers