Open main menu

This Template is intended to complement Template:Information.

Contents

Example for useEdit

See: Image:Hildesheim-Hoher.Weg.Huckup.01.JPG

Syntax {{Location|Degree|Minute|Second|Latitude|Degree|Minute|Second|Longitude|Information attributes}}
Example {{Location|52|09|03.70|N|9|57|02.79|E|type:landmark_region:DE-NI_scale:5000}}

ExplanationEdit

The example is for a landmark in the region Germany (DE), Lower Saxony (Niedersachsen NI). By scale you request the mapping program to render the map in a scale of 1/5000.) Information attributes on landmark and region should always be added. Scale is an optional parameter and is not necessarily required. To find adequate parameters for other regions of the Earth, please look at the project pages in the English Wikipedia (w:en:Wikipedia:WikiProject Geographical coordinates or in the German Wikipedia (w:de:Wikipedia:WikiProjekt Georeferenzierung).

Missing mapsEdit

@Mike Peel, Jarekt: Files with {{Location}} template are listed into Category:Pages with maps, but the files pages are without any map yet. I think, the output of the template should contain a similar map as {{Infobox Wikidata}} uses. Such as map on the file pages is very wanted and needed. Maybe, also UploadWizard form should use a map to check the entered or imported coordinates.

As wiwosm/osm-on-ol/commons-on-osm is not updated (it is a dead archive only, not displaying new images), this template should contain links to new map tools, as osm4wiki wikishootme etc. (which should be improved by all commons-on-osm useful features). Generally, {{Information}} and {{Location}} should be harmonized with {{Infobox Wikidata}} as possible. --ŠJů (talk) 15:14, 8 September 2018 (UTC)

Maybe {{Location}} should be rewriten as collapsible template, with similar look as now but with possibility to uncolapse it when clicked. As for Category:Pages with maps category, it is not added by any template or module, but by kartographer extension, so we do not have any say about what pages get it. --Jarekt (talk) 03:35, 9 September 2018 (UTC)
@Jarekt: I would like to see the map on the file page without clicking to uncolapse. --ŠJů (talk) 00:47, 10 September 2018 (UTC)
Maps need to be big to be useful We can create some mockups and ask others about what they prefer, but I would vote for small box with option to uncollapse. --Jarekt (talk) 01:00, 10 September 2018 (UTC)

ProblemEdit

When I use Google maps to look up one of my locations it does not give me numbers like you have used in your example: 52°09'03.7"N 9°57'02.8"E

It gives me numbers like this: 52.151028, 9.950778

So I cannot use your template, I expect because I live in a different hemisphere or something

Is it not possible for the template to do the necessary calculations? Thanks, Eddaido (talk) 10:49, 5 January 2019 (UTC)

Hi Eddaido, of course you can. See Template:Location#Examples. --Arnd (talk) 13:08, 5 January 2019 (UTC)
Aha! Thank you! - but its not exactly prominent is it. Thanks Arnd, Eddaido (talk) 13:15, 5 January 2019 (UTC)

Wikidata complaining about the locationEdit

Category:Bradleys Head Lighthouse has this statement

{{Object location|-33.853487|151.246664|Wikidata=Q897057}}

which is complaining

There is a discrepancy of 33 meters between the above coordinates and the ones stored at linked Wikidata item Q897057 (33°51′13″S 151°14′49″E, precision: 11 m). Please reconcile them. To copy Commons coordinates to Wikidata, click here

I get the coordinates from the Wikipedia article, I double-check them in Google Maps, I update the coords on Commons (the ones above). Still complains. So I "click here" as instructed. I login in, I run the tool it presents. The error persists. Now what? Kerry Raymond (talk) 23:20, 27 February 2019 (UTC)

  • Ignore Wikidata. It’s a useless GIGO machine with an atrocious UI. -- Tuválkin 23:57, 27 February 2019 (UTC)
  • @Kerry Raymond: I've just checked, and saw no error, so maybe you had a caching issue (try doing a page-purge). However, I have removed the {{Object location}} template, as the category page also has a {{Wikidata infobox}} template, which incudes the coordinates. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:28, 28 February 2019 (UTC)
    • Maybe the tool (which I don't recall having a name) should tell you to purge as it's a real time-waster sitting there trying to fix a problem if it isn't really there. And it should include instructions for installing the page purge gadget as I doubt everyone has it. Also, please don't remove the Object Location on Commons. At the moment, I am trying to connect up all the New South Wales State Heritage Register articles with their Commons category (or create a Commons category if photos exists but aren't in a category). Often the naming of files and categories on Commons makes it unclear whether or not they are the photos of a particular NSWSHR place, e.g. is Category:Narrandera railway bridge the heritage-listed railway bridge in Narrandera? Are the photos of St John Uniting Church in Orange the heritage-listed Uniting church in Orange? After a fair bit of investigation, I think they are for a different bridge and a different church. Indeed, I think the 3 photos in the bridge category are not even of the same bridge. I have to use every clue about locations of the photo, of the category, etc to try to resolve these things. If the source of ground truth is in the article, or the photo, or the commons category, it should never be removed from there just because it has been copied onto Wikidata. At the moment, I am seeing people systematically removing Commons Categories from WP articles with edit summaries that this information is already on Wikidata, but did those people know enough to be sure that was the right Commons category on Wikidata or are they operating on the principle of "the name is similar", a behaviour encouraged by by MixNMatch. Kerry Raymond (talk) 23:14, 28 February 2019 (UTC)
      • @Kerry Raymond: The problems arising from Wikidata’s initial inability to link between a Wikipedia article and a Commons category have recently become much less annoying and it’s almost trivial to ensure the correct interlinking is showing on both sides, by means of Wikidata. The manually filled-out {{Commonscat}} is replaced by «In other projects: Wikimedia Commons» on the sidebar (it can be used to override Wikidata, when really necessary). It’s good to see Wikidata working as intended, even if only after several years and a few million dollars. -- Tuválkin 07:24, 1 March 2019 (UTC)
    • A second question. I note that the error message related to a 33m difference and an 11m precision. For a lighthouse which has a relatively small footprint, 33 metres difference may be significant, but for heritage-listed lighthouses, we are often dealing with a lighthouse precinct consisting of the lighthouse, a lighthouse keeper's cottage, and other infrastructure, for which there are boundaries and the single coordinate will usually be a centroid and not necessarily the lighthouse itself, in which case 33m might be quite acceptable as a difference. Similarly I can't imagine that 33m is a meaningful discrepancy if you are talking about the location of something with a very large footprint, such as an abandoned mining town. How is it decided if a discrepancy is significant? Kerry Raymond (talk) 23:14, 28 February 2019 (UTC)
      • @Kerry Raymond: I’d guess it simply reacts to the values not being identical, without any attempt at considering scale and precision (which is okay, since Wikidata and Commons should have the same criteria and therefore any discrepany is an error, albeit small). -- Tuválkin 07:24, 1 March 2019 (UTC)
    • @Pigsonthewing: You did what? You actually removed the coordinates as stored locally in this project, trusting that the remotely hosted geolocation data will not get corrupted? You’re either haven’t been paying attention to what’s going on about Wikidata’s issues with low volunteer activity, peameability to vandalism, unreliable results, and opaque mechanism — or you’re willing to sacrifice the health of our content to prove a point. (A point which I agree with, in theory, but I value the practical aspect of having healthy data way more.) -- Tuválkin 07:24, 1 March 2019 (UTC)
      • I'm not going to respond to such hysterical, ad hominem nonsense. If you wish to have a discussion, rephrase your post more reasonably. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:11, 2 March 2019 (UTC)

We have 2 categories for pages with commons/wikidata geolocation discrepancies:

in both cases distance is measured between 2 location and divided by precision taken from wikidata. In the first category, there seems to be a clear mismatch, in the second one is more mild mismatch. Some places like country, city, national park, etc. should not use precise locations with sub-meter accuracy, so many issues are due to Wikidata "precision" field which should be fixed there. However a Lighthouse, statue, etc. could be very precise, so the most pressing issues is to reconcile locations of such objects. --Jarekt (talk) 20:34, 1 March 2019 (UTC)

Leading zerosEdit

In this Template there shoud be integrated leading zeros in the E-W coordinates. East-West coordinates have 3 digits since they vary fom 0° to 180°. The print out in this example should be 016°54'25.16"

Object location25° 06′ 13.26″ S, 16° 54′ 25.16″ E  View all coordinates using: OpenStreetMap - Google Earth 

--Hp.Baumeler (talk) 10:05, 20 March 2019 (UTC)

I never see coordinates written in this format. For me, "16°54'25.16"" looks much more natural than "016°54'25.16"". Any other opinions? --Jarekt (talk) 00:29, 21 March 2019 (UTC)
In aviation and other fields where coordinates are crucial they are written with leading zeros to show to the reader that no number is missing. (See German page: Darstellung von geographischen Koordinaten.) The template already includes a leading zero within the minutes: --- 06'---! Coorinate-Minutes vary from 00 to 60 minutes, hence are expressed with two digits. The East-West degrees vary from 00 to 180 and hence should be written with 3 digits! --Hp.Baumeler (talk) 13:50, 23 March 2019 (UTC)
I can see a use for leading zeroes in numeric-only tabular formats, but with the proper symbols I don’t think they add any value. IMO the minutes & seconds are quite a different case from the degrees: they do frequently appear with leading zeroes, almost as often as in time formats, but I’ve very rarely seen degrees printed that way in gazeteers, maps, navigation manuals, or the like.—Odysseus1479 (talk) 23:13, 10 April 2019 (UTC)

Google EarthEdit

Link doesn't work. It was very useful when it worked. It has been broken for weeks and no indication that someone will repair it this year. Until it works, this and other templates should use something else instead, such as Bing Maps. Jim.henderson (talk) 13:54, 9 April 2019 (UTC)

@Para:, Any chance Google Earth tool can be fixed? --Jarekt (talk) 18:20, 10 April 2019 (UTC)
Fixed. All it needed was a webservice start after WMF shut down the previous servers. --Para (talk) 20:14, 10 April 2019 (UTC)
@Jim.henderson: the links are to tools which are capable of displaying locations of other files. There is not tool to display them on Bing Maps or other map providers. --Jarekt (talk) 18:20, 10 April 2019 (UTC)

@Jarekt: @Para: thanks to both; that useful feature is indeed working well for me. Template:Geogroup still isn't working. Sometimes I think, every time something is repaired, something else will stop working. Jim.henderson (talk) 04:05, 11 April 2019 (UTC)

Return to "Location" page.