GeoHack - Category:Nucli de Castelló d'Empúries

WGS84 42° 15′ 31.81″ N, 3° 4′ 29.18″ E
42.258835, 3.074771
Geo URI geo:42.258835,3.074771
UTM 31T 506167 4678518
Zoom 8 Scale ± 1:10000
Region ES-CT Type landmark 
Title Category:Nucli de Castelló d'Empúries (Edit | Report inaccuracies)
Contents Global and Local services · Wikipedia articles · Photos · Other · Export

View this location in Google Maps, in OpenStreetMap, or select one of the services listed below:

Global services

Service Map Satellite Topo Other
ACME Mapper Map Satellite Topo TerrainMapnik
Apple Maps Map Satellite Daily Satellite
Bing Maps Map Aerial Bird's Eye
Blue Marble Navigator Satellite Night Lights
Flash Earth Satellite
Fourmilab Satellite
GeaBios Satellite
GeoNames Satellite Text (XML)
Google Earthnote Open w/ meta data
Google Maps Map Satellite Terrain
GPS Visualizer Map Satellite Topo Drawing utility
HERE Map Satellite Terrain
MapQuest Map
MapTech Map
NASA World Wind Open
Norkart Virtual Globe Satellite
Map more maps, Nominatim (reverse geocoding)
Shaded Relief Terrain
SkyVector Aeronautical chart
TerraServer Satellite
Topomapper Topo Dual view
Waze Map Editor, open in app, navigate in app
Wikimapia Map
+ old places
WikiMiniAtlas Map
Yandex.Maps Map Satellite


Service Coverage Map
SigPac all Map
Vissir - ICC Catalonia Map
Nomecalles Community of Madrid Map

View all regional services

Wikipedia articles

Aspect Link Prepared by
Wikidata items
Article on specific latitude/longitude Latitude 42° N and Longitude 3° E
All coordinates on Category:Nucli_de_Castelló_d'Empúries in Google Maps, Bing Maps Para
Layer in Google Maps, OpenStreetMap Wikipedia-World
Table of coordinates 5, 10, 20, 50, 100, or 250 km away Wikipedia-World
Table of coordinates 5, 10, 20, 50, 100, or 250 km away Dispenser, daily 07:00 UTC
Table of coordinates Geonames Geonames


Other information

Service Aspect Near by locations, Map this location View land use
NASA Weather Satellite images: Radar, Real-Time (Daily Terra)
Megalithic Portal Prehistoric Sites, nearby
World Time Engine Timezone
Ex :: Natura Sunrise and sunset Sunrise, Sunset, Twilight, and Moon
Geody Info
Heavens-Above.Com Satellite/Planet Spotter
Echolink Nearest gateway for amateur radio VoIP network APRS stations Repeaters on DL3EL database
Degree Confluence Project Info
OpenPisteMap Skiing slopes
OpenSeaMap Sea lanes, beacons, traffic, etc.
Great Circle Mapper Nearby Airports
GeoHack Antipodes
Jon Bounds Emotional status
Talis Group (ref) Nearby points of interest (PoIs as linked data) Global 'Postcode' System
MaPit (from mySociety) Containing areas (political boundaries, etc.) 360° panoramic mountain views
Flightradar24 Planes flying in the area
MarineTraffic Ships in the area

Template documentation[view] [edit] [history] [purge]

The GeoTemplate can be invoked by using {{Coord}}. An external tool fills the template with the coordinates data as described on this page.


GeoHack (the tool that fills GeoTemplate with working links) takes two inputs:

  • URL parameters: Coordinates are given in the format 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. They can be followed by coordinate parameters such as type, scale and region, separated by underscores. On Wikipedia the URL is generated by coordinate templates.
    For example, the wikitext {{coord|51|28|40|N|0|0|6|W|type:landmark_scale:2000_region:GB}} becomes params=51_28_40_N_0_0_6_W_type:landmark_scale:2000_region:GB in the URL.
  • The template page (contents of GeoTemplate) where variables are replaced with values computed from the data given in the URL. The rest of this page documents the available variables.


GeoHack provides the following variables based on the given coordinates (51_28_40_N_0_0_6_W in the example above).

  • Latitude/longitude
    • 42, 3 - WGS84 Absolute integer degrees
    • 42.258835, 3.074771, -3.074771 - WGS84 Total decimal degrees
    • 42.258835, 3.074771, -3.074771 - WGS84 Absolute decimal degrees
    • 42, 3 - WGS84 Floored integer degrees
    • 42, 3 - WGS84 Rounded integer degrees
    • 15.5301, 4.4863 - WGS84 Decimal minutes
    • 15, 4 - WGS84 Integer minutes
    • N, E - WGS84 Direction of absolute integer degrees
    • 31.81, 29.18 - WGS84 Decimal seconds
    • 31, 29 - WGS84 Integer seconds
    • -42.258835, -176.925229 - Antipodes of 42.258835, 3.074771

Other national grids are supported through specific tools: Finland (tools:~para/kkj.php), Tokyo datum (tools:~para/cgi-bin/wgs2tky)


GeoHack accepts a scale parameter (scale:2000 in the example above) which it uses to provide scaling or zoom values for different mapping services.

name used by formula
10000 Virtual Globe supplied in URL via scale or calculated based on type
10000 Multimap closest scale value accepted by Multimap (see mapsources.php)
0.01 Google Maps, WikiMapia scale / 1000000
1 MSN Maps, Fourmilab, Swissinfo integer( scale * 143 / 1000000)
8 MapQuest, Gule Sider integer(18.0 - log(scale))
15 OpenStreetMap, Live Search Maps 18 - ( round(log( scale ,2) - log(1693,2)) )

GeoHack accepts a type parameter (type:landmark in the example above) from which it will calculate a scale value when none is supplied. The following chart shows the types currently understood by GeoHack, the scale ratio associated with each, plus the additional variables calculated by GeoHack.

landmark ratio 10000 10000 0.01 1 8 15
country 1 : 10,000,000 10000000 10000000 10.0 1430 1 5
state 1 : 3,000,000 3000000 4000000 3.0 429 3 7
adm1st 1 : 1,000,000 1000000 1000000 1.0 143 4 9
adm2nd (default) 1 : 300,000 300000 200000 0.3 42 5 11
city, mountain, isle,
river, waterbody
1 : 100,000 100000 100000 0.1 14 6 12
forest, glacier 1 : 50,000 50000 50000 0.05 7 7 13
airport 1 : 30,000 30000 25000 0.03 4 7 14
edu, pass, landmark, railwaystation 1 : 10,000 10000 10000 0.01 1 8 15

The default values can for each type can be overridden by also supplying a scale. For example, type:airport is assigned a 10000 of 30000, while type:airport_scale:10000 uses the supplied 10000 of 10000.

For detailed implementation see [http mapsources.php]


  • ES-CT, Earth, - Look up page from Wikipedia. See if we have something in Wikipedia:Map sources or equivalent. A subpage can be specified
  • Category:Nucli_de_Castelló_d'Empúries - The value from the pagename key in the query (e.g. &pagename=Article) (URI scheme#Generic syntax) - FULLPAGENAMEE expected. When used with {{Coord}} this returns the containing article name with whitespace replaced by underscores. For example: Bellevue Botanical Garden becomes Bellevue_Botanical_Garden.
  • Category:Nucli de Castelló d'Empúries - The value from the title key in the query (e.g. &title=Name). If not given in the query, is the same as Category:Nucli_de_Castelló_d'Empúries.

Section coding

When the parameters contain a region or GeoHack finds the region with the coordinates, a matching section is moved to the location marked with the placeholder:

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

The region sections are wrapped in an element where the XX of the id is the ISO 3166-1 alpha-2 code: