Extension:Gis/geo tag
Geo tag
The <geo> tag allows entry of geographical coordinates in style with RFC1876. For example, specifying degrees, minutes and seconds of latitude and longitude:
<geo>40 53 40 N 40 00 32 W</geo>
All coordinates should be referenced to WGS84.
Variations of the above allow specification of degrees and minutes, and degrees only. Decimals can be added to increase precision. Additional meta-data can also be specified as attributes for the location, like this:
<geo>40 53 40 N 40 00 32 W type:mountain region:US scale:100000</geo>
In the rendered article, the tag will be replaced with 48°46'36"N 121°48'51"W, which is also a Wikilink to a page of map resources for that point.
Coordinates specified in RFC2426 format are also supported, i.e. two signed, decimal numbers separated by a semicolon, indicating latitude North and longitude East, respectively.
In addition to a point, the tag can also specify a bounding box by giving two, opposite corner points, like this:
<geo>48 45 N 121 47 W to 48 47 N 121 49 W</geo>
Attributes
Following the geographical coordinates, further parameters can optionally be supplied. Attributes are:
type:T
Sets the type of this location, which will be used for the reverse mapping of the points. This will also influence the default map scale. Types are:
country | (e.g. "type:country") | 1:10,000,000 |
state | Where applicable | 1:3,000,000 |
adm1st(pop) | Administrative unit of country, 1st level (province, county). Population should be specified. Commas will be ignored in pop. | 1:1,000,000 |
adm2nd(pop) | Administrative unit of country, 2nd level (municipality). Population should be specified. Commas will be ignored in pop. Use city for administrative units at this level that is also a city. | 1:300,000 |
city(pop) | City, with specified population. Commas will be ignored in pop. There should be no blanks. Cities with unspecified population will be treated as minor cities. | 1:30,000 ... 1:300,000 |
airport | 1:30,000 | |
mountain | 1:100,000 | |
isle | 1:100,000 | |
landmark | Cultural landmark, building of special interest, tourist attraction and other points of interest. | 1:10,000 |
The type information will be stored in the database.
scale:N
Sets the desired map scale as 1:N. This will override the default scale. The scale: prefix can be omitted.
region:R
Sets the preferred map region of coverage, used in selecting appropriate map resources for the area. The region should be supplied as either a two character en:ISO 3166-1 alpha-2 country code, or an en:ISO 3166-2 region code.
When a region is specified, for the map resource, the page Wikipedia:Map sources/RR will be used if it exists. RR is the two character country code.
globe:G
Specifies other worlds than en:earth. Such as the en:Moon. For the map resource, the page Wikipedia:Map sources/G will be used. This information is stored in the database.
page:P
Specify an alternative page for map sources, in the form of Wikipedia:Map sources/P. The page attribute will override region and globe specifications with regards to which map source sub-page is used.
HTML meta tags
When rendered in HTML, articles with coordinates will get a 'geo.position' meta tag, making it compatible with Internet geographic resources, such as http://geourl.org/. The region attribute, if stated, will appear in a 'geo.region' meta tag.