Wikipedia:WikiProject Geographical coordinates/coordinates search tool
class="wikitable"
|+Sample searches ! Description ! MySQL Regular expression query |
Coordinates imported from the CSWiki
| {{code|source:cswiki}} |
Settlements whose populations are under 1,000
| {{code|2=ragel|1=type:city\([0-9]{0,3}\)}} |
South of the Antarctic Circle (approximate)
| {{code|2=ragel|1= |
Coordinates equivalent to {{coord|0|0}}
| {{code|2=ragel|1==[-_0.]+[NS][-_0.]+[EW]}} |
Coordinates in San Marino
| {{code|region:SM}} |
Coordinates on Callisto
| {{code|2=ragel|1=globe:[Cc]allisto}} |
To switch to other wikis, the site parameter can be added to the URL, e.g.
- {{code|2=ragel|1=&site=commons}} for Commons
- {{code|2=ragel|1=&site=pt}} for Portuguese Wikipedia
id="glupt-source" class="wikitable sortable"
|+ Searches to find problems ! Problem description ! Python regular expression |
Excess precision (6 or more decimal places)
| {{code|2=ragel|1=[.][0-9]{6} }} |
Excess precision (5 decimal places)
| {{code|2=ragel|1=[.][0-9]{5}[^0-9]}} |
Coordinates lacking metadata (no type or region)
| {{code|2=ragel|1= |
Unexpected character in parameter name
| {{code|2=ragel|1=params=[^&=]*?[^_a-z][a-z]*:}} |
Unsupported parameter elevation:
| {{code|2=ragel|1=params=[^&=]+?elevation:}} |
Unsupported parameter other than elevation:
| {{code|2=ragel|1= |
Malformed region code
| {{code|2=ragel|1= |
Unassigned top-level region code
| {{code|2=ragel|1= |
Unexpected character in dim or scale or typesize
| {{code|2=ragel|1= |
Incomplete parameter
| {{code|2=ragel|1= |
Invalid type
| {{code|2=ragel|1= |
City without type:
| {{code|2=ragel|1=params=[^&=]*?[^:]city}} |
College with type: other than edu
| {{code|2=ragel|1=[Cc]ollege[&].*?type:(?!edu)}} |
School with type: other than edu
| {{code|2=ragel|1=[Ss]chool[&].*?type:(?!edu)}} |
University with type: other than edu
| {{code|2=ragel|1=[Uu]niversity[&].*?type:(?!edu)}} |
United States broadcaster with type: other than landmark
| {{code|2=ragel|1=[^(][KW][A-Z][A-Z][A-Z].*?params=.*?type:(?!landmark)}} |
Station with type: other than railwaystation
| {{code|2=ragel|1=ailway_[Ss]tation.*?type:(?!railwaystation)}} |
Typesize provided for type other than city
| {{code|2=ragel|1=type:(?!city)[^&=_]*[(]}} |
Unusual URL formatting
| {{code|2=ragel|1= |
class="sortbottom"
! colspan="2" style="text-align:left;" | Tallies |