Wikipedia:WikiProject Geographical coordinates/coordinates search tool
Appearance
| Description | MySQL Regular expression query |
|---|---|
| Coordinates imported from the CSWiki | source:cswiki
|
| Settlements whose populations are under 1,000 | type:city\([0-9]{0,3}\)
|
| South of the Antarctic Circle (approximate) | =(66_[3-9]|66.[6-9]|6[7-9]|[7-9][0-9])[0-9_.]*_S_
|
| Coordinates equivalent to 0°N 0°E / 0°N 0°E | =[-_0.]+[NS][-_0.]+[EW]
|
| Coordinates in San Marino | region:SM
|
| Coordinates on Callisto | globe:[Cc]allisto
|
To switch to other wikis, the site parameter can be added to the URL, e.g.
&site=commonsfor Commons&site=ptfor Portuguese Wikipedia
| Problem description | Python regular expression |
|---|---|
| Excess precision (6 or more decimal places) | [.][0-9]{6}
|
| Excess precision (5 decimal places) | [.][0-9]{5}[^0-9]
|
| Coordinates lacking metadata (no type or region) | _[WE]_+($|&title=|\{+[0-9]\}+)
|
| Unexpected character in parameter name | params=[^&=]*?[^_a-z][a-z]*:
|
| Unsupported parameter elevation: | params=[^&=]+?elevation:
|
| Unsupported parameter other than elevation: | params=[^&=]+?([^emn]|cation|me|om):
|
| Malformed region code | params=[^&=]+?region:([^A-Z]|[A-Z]([^A-Z]|[A-Z][^_&-]|[A-Z]-[^0-9A-Z]))
|
| Unassigned top-level region code | region:(A[ABCHJKPVY]|B[CKPX]|C[BEJPQT]|D[^EJKMOZ]|E[ABDI-LUW]|F[A-HLNPQS-Z]|G[CJKOVXZ]|H[A-JLOPQSV-Z]|I[A-CF-KPU-Z]|J[^EMOP]|K[A-DFJ-LOQS-VX]|L[D-HJL-QWXZ]|M[BIJ]|N[BDHJKMNQSV-Y]|O[^M]|P[B-DIJOPQUVXZ]|Q[^A]|R[^EOSUW]|S[PQUW]|T[ABEIPQSUXY]|U[^AGMSYZ]|W[^FS]|X[^AINPSZ]|Y[^ET]|Z[^AMW])
|
| Unexpected character in dim or scale or typesize | (dim:[0-9.]*([^0-9.k_&]|k[^m]))|(scale:[0-9]*[^0-9_&])|(city[(][0-9,]*[^0-9,)])
|
| Incomplete parameter | params=[^&=]*?(dim|globe|region|scale|source|type):?(&|_|$)
|
| Invalid type | type:(?!(adm(1st|2nd|3rd)|airport|city|country|edu|event|forest|glacier|isle|landmark|mountain|pass|railwaystation|river|satellite|waterbody)($|[&_()]))
|
| City without type: | params=[^&=]*?[^:]city
|
| College with type: other than edu | [Cc]ollege[&].*?type:(?!edu)
|
| School with type: other than edu | [Ss]chool[&].*?type:(?!edu)
|
| University with type: other than edu | [Uu]niversity[&].*?type:(?!edu)
|
| United States broadcaster with type: other than landmark | [^(][KW][A-Z][A-Z][A-Z].*?params=.*?type:(?!landmark)
|
| Station with type: other than railwaystation | ailway_[Ss]tation.*?type:(?!railwaystation)
|
| Typesize provided for type other than city | type:(?!city)[^&=_]*[(]
|
| Unusual URL formatting | geohack.php[?](?!pagename=)|&language=
|
| Tallies | |