Logo Voyage

Template talk:Geo Voyage Tips and guide

You can check the original Wikivoyage article Here

    See Project:Geocoding for usage information.

    Datum

    [edit]

    I assume it is WGS84? -- (WT-en) elgaard 12:53, 19 Dec 2005 (EST)

    Spelling error

    [edit]

    I think, the right manner of writing would be "longitude" instead of "longtitude". --(WT-en) Atlas 01:51, 19 Jan 2006 (EST)

    The instructions on geocoding have the right spelling. I've taken out these old instructions. --(WT-en) Evan 12:00, 19 Jan 2006 (EST)

    Microformat

    [edit]

    Please consider including the Geo microformat. All it needs is:

    <div class="geo">  <!-- or span, or some other container, such as <P> -->
     <abbr class="latitude" title="37.408183">N 37° 24.491</abbr> 
     <abbr class="longitude" title="-122.13855">W 122° 08.313</abbr>
    </div>
    

    I hope that Project:Microformats will be useful. Thank you. (WT-en) Andy Mabbett 16:06, 25 November 2006 (EST)

    Once display is restored; this should be implemented. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:57, 16 January 2013 (UTC)Reply

    Maps

    [edit]

    If I add this template I'll get a link in the bar on the left. This is a great feature, for e.g. Paris, where the map is incidentally in the right size. But it is not useful e.g. for the US, because the map section is by far too small. Is it possible to add another variable to this template describing the desired magnification? --(WT-en) Flip666 15:55, 6 February 2007 (EST)

    Transpose to other language versions

    [edit]

    I'd like to transpose this template to Portuguese Wikivoyage but I'm not sure about a few issues:

    1. Is the Mapstraction feature already functional on pt:?
    2. Will it still work if we name the template something more friendly like Coordenadas (coordinates)?
    3. Can the "Page is about a place" and "The place is at this lat and long position" bits be translated?

    Thank you, (WT-en) Ricardo (Rmx) 17:56, 6 April 2007 (EDT)

    Yep. It all works. We have de:Vorlage:Geo on de:. -- (WT-en) Sapphire(Talk) • 18:00, 6 April 2007 (EDT)

    Ok. I did some research.

    You'll want to customize the following files:

    I'm not sure about your last question, but I think you should be able to name the template whatever you want. -- (WT-en) Sapphire(Talk) • 18:20, 6 April 2007 (EDT)

    I tried to implement this feature on :ru, but the mapstraction link does not appear in the toolbox. The template is here and the one article that is currently using it is here. Any ideas why this isn't working? --(WT-en) Peter Talk 18:02, 10 March 2008 (EDT)

    Bug

    [edit]

    I'm not sure why, but the inclusion of this template in the Washington, D.C. article causes all RDF features there to break. --(WT-en) Peter Talk 04:59, 19 September 2009 (EDT)

    One possible debug method would be to subst the template and then (after making sure the RDF is still broken) edit the substituted code to see what triggers the failure. (WT-en) LtPowers 10:32, 22 September 2009 (EDT)

    Map Sources

    [edit]
    Swept in from the pub

    Can we replace Special:Mapsources (example) with a link to something using Wikipedia's GeoTemplate (e.g. this service), and thereby reduce the maintenance overhead? —The preceding comment was added by Pigsonthewing (talkcontribs)

    Probably, but I don't know that it's urgent. (It doesn't cost much maintenance overhead, and we'd have to spend time investigating how to make the change.) LtPowers (talk) 14:24, 14 November 2012 (UTC)Reply

    On the same topic, when I click on the coordinates displayed at the top right of our articles, I get an error message: "No project page Map sources available." This is something we should try to fix ASAP before launch, as the links are everywhere, and it makes our project look a little unprepared. --Peter Talk 05:35, 10 January 2013 (UTC)Reply

    how about temporary link to GeoHack? e.g. geohack. --Traveler100 (talk) 22:10, 10 January 2013 (UTC)Reply
    If you know how to get that working, please do go ahead and modify Template:Geo. --Peter Talk 23:50, 10 January 2013 (UTC)Reply
    I have made the minimum edit possible to get this to work by editing {{Coord-URL}}. This will give you a page with many links to mapping sites at with the coordinates input in the {{geo}} template. One issues with this. The map list page was written for Wikipedia so the link in the title area is to the equivalent Wikipedia page and not the original starting Wikivoyage page. Need to see if we can get this changed. --Traveler100 (talk) 07:05, 11 January 2013 (UTC)Reply
    That's a huge improvement over an error message, though, and should be good for now. Thanks! --Peter Talk 07:39, 11 January 2013 (UTC)Reply
    The project page was created on Jan 18th and Special:Mapsources works again ({{listing}} has it in its crosshairs). It might've been easier just to create project:map sources instead of forcing this template onto GeoHack? K7L (talk) 16:29, 8 March 2013 (UTC)Reply
    Seem like a good proposal to me. The link to geohack was only done as it was better than the error message. Can be updated now.Traveler100 (talk) 18:39, 8 March 2013 (UTC)Reply

    Display

    [edit]

    Could we remove the coordinates display from the top, leaving only the globe icon, and have the globe icon be the link to map sources? I was playing around with it, but couldn't figure it out. Having the coordinates readable seems unnecessary, and they are running into other title icons (stars & dotms). --Peter Talk 18:08, 9 January 2013 (UTC)Reply

    I'd be cool with that.... just noticed as well that it's conflicting with other title icons as in San Francisco. Also don't mind if it's spelled out, as long as it isn't overlapping – cacahuate talk 06:01, 15 January 2013 (UTC)Reply
    I have edited Template:Geo/sandbox so that only the globe icon is displayed. Would be good if someone tested it on a few pages and gave feedback before updating the active template. --Traveler100 (talk) 17:44, 15 January 2013 (UTC)Reply
    Yes, it looks good. The globe is still a little close to the star icon on pages that have both a star icon and a dotm icon (just a little bit of overlap), but this is a big improvement. I'll update. --Peter Talk 20:12, 15 January 2013 (UTC)Reply
    I object to this removal; please restore the displayed coordinates. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:56, 16 January 2013 (UTC)Reply
    So far you're the only one clamoring to have coordinates displayed everywhere. Please work to garner some consensus rather than simply requesting your wishes be followed. LtPowers (talk) 20:01, 16 January 2013 (UTC)Reply
    And this change was made after a brief discussion, on an obscure template talk page, involving just three editors. What happened to garnering consensus there? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 00:24, 17 January 2013 (UTC)Reply

    Category:Articles needing Geo parameter

    [edit]
    Swept in from the pub

    With IsPartOf, we have put the blank template call into the article models, and when an article is created without filling it in, it adds the page to Category:Articles needing IsPartOf parameter. Why don't we do the same thing for the Geo template? Texugo (talk) 11:26, 8 March 2013 (UTC)Reply

    I thought this would be easy, but going wrong somewhere with the syntax. Experiment in Template:Geo/sandbox. --Traveler100 (talk) 12:25, 8 March 2013 (UTC)Reply
    Weird. I couldn't figure out what the problem is either. Anyone else want to have a go? Texugo (talk) 12:55, 8 March 2013 (UTC)Reply
    User:K7L seems to have gotten your test page working now.Texugo (talk) 17:09, 8 March 2013 (UTC)Reply
    Partially working... it doesn't turn off the globe icon if the co-ordinates are missing but it does populate the maintenance category properly. K7L (talk) 17:12, 8 March 2013 (UTC)Reply
    Any template wizards around here? Texugo (talk) 20:45, 13 March 2013 (UTC)Reply
    It's been 2 months now and it's still only half-working. Does anyone know how to make it turn off the globe when the coordinates are missing? Texugo (talk) 14:36, 14 May 2013 (UTC)Reply
    Fixed, in conjunction with coordinate parsing. -- torty3 (talk) 15:25, 20 May 2013 (UTC)Reply
    Great! Thank you. I will add the {{geo}} template to the new article insertion templates. Texugo (talk) 19:35, 20 May 2013 (UTC)Reply

    Position

    [edit]

    Would it be possible to move the icon down a few pixel. With the new pagebanner it encroaches into the search box. For example Walt Disney World/Epcot, would be good if could be moved to just above the page line, this should then still work for pages without the banner, until all are updated. --Traveler100 (talk) 09:08, 9 May 2013 (UTC)Reply

    It only encroaches if you've dismissed the sitenotice. =) LtPowers (talk) 14:51, 9 May 2013 (UTC)Reply
    It looks like this might be a CSS issue; hopefully we'll eventually find a way to integrate it full within the pagebanner template. --Nick (talk) 17:51, 9 May 2013 (UTC)Reply
    [edit]

    So this now points to POI Map on the WV-ev servers. That's definitely a cool feature, but there are a couple hitches. Would it be possible to have a default zoom that's fairly far out. This [1] is what you get if you click on the geo link from Chiapas, which to the uninitiated might just look like a blank screen. Also, if that screen could show the lat,long separated by a comma, that would be hugely useful. It is in the urlbar, but that's not a handy place for cut & paste jobs. --Peter Talk 05:44, 27 May 2013 (UTC)Reply

    The template {{geo}} has no parameter for the zoom factor. Therefore, a fixed factor is selected. In most cases this should be sufficient [2]. You can tap the "Destinations" button to see a wider range. - For copy & paste functions you can use this map. There are some pre-formatted templates to copy & paste directly. I can add more templates if you like. -- Joachim Mey2008 (talk) 07:27, 27 May 2013 (UTC)Reply
    The current fixed zoom level may be too high for region and national park articles (but it is a good level for towns/cities). But also, there is a zoom parameter in {{geo}}: scale=X. For an example, see Washington, D.C. --Peter Talk 07:53, 27 May 2013 (UTC)Reply
    Ah sorry about that, I mucked it up and removed the lot when I was changing the template. Didn't seem like many articles were using the scale factor at all. Should be added back in, but after checking what are good zoom levels for regions and national parks. I think using region=yes or zoom=12 and then using PoiMap2 to interpret that would be better, since scale is hard to translate without some math at least. -- torty3 (talk) 08:06, 27 May 2013 (UTC)Reply
    Only the Washington D.C. articles use the scale parameter. All other articles use only lat / lon. I would suggest the zoom factor according to OpenStreetMap. See geo -- Mey2008 (talk) 08:50, 27 May 2013 (UTC)Reply
    Yes, OSM zoom level (zoom=1-19) will be the most straightforward way to handle this. --Peter Talk 09:11, 27 May 2013 (UTC)Reply
    PoiMap2 can handle a third parameter of the template {{geo}} as zoom level {{geo|lat|long|zoom}}. The template {{geo}} I would adjust if there is a consensus. -- Mey2008 (talk) 13:01, 27 May 2013 (UTC)Reply
    I think that's perfectly fine and pretty standard factor to implement. Could you take a look at Wikivoyage_talk:Banner_Expedition#More_title_icons_for_the_banner? They want to put geo into the pagebanner, but that could mean either leaving {{geo}} as a extra duplicate, or removing it all together depending on needs, especially for the article database. -- torty3 (talk) 15:37, 27 May 2013 (UTC)Reply

    Map layer

    [edit]

    Would it be possible to add a layer= parameter? The default tourism layer (O) is not always ideal—for Valle de Cocora it does not show the main hiking trail, while layer Mapnik (M) does. {{mapframe}} has this parameter. --Peter Talk 20:25, 19 July 2013 (UTC)Reply

    I'd second this; our Yala National Park‎ article map when invoked with the Geo icon at top right and the standard (inferior) mapquest layer does not even show the park never mind the name. --W. Franke-mailtalk 01:45, 13 August 2013 (UTC)Reply

    Zoom level and window resolution

    [edit]

    I think there should be some advice about how to check a certain zoom level is appropriate. For Scandinavia much of the region is outside my view, see Talk:Scandinavia#Geo tag. If editors choose parameters relying on their own browser window settings there will probably be editing back and forth and users with settings differing from those of the editor will start with a less than ideal, sometimes really confusing, zoom level.

    Given different user hardware we probably cannot get anything good for everybody, but something based on a centralised discussion is probably better than a random outcome.

    --LPfi (talk) 12:18, 7 October 2013 (UTC)Reply

    Interesting point.
    The default of 13/14 is about right for many settlements, but of course, it's entirely inappropriate for region, country, or continental levels. More important than the zoom level though, is the placement of the map centre since it is relatively simple and intuitive for readers to increase or decrease their magnification levels.
    My suggestion would be to set zoom levels that work well for netbook size screens since larger screens will probably have faster connections if the map needs to be re-drawn at different magnifications. --W. Frankemailtalk 16:23, 7 October 2013 (UTC)Reply
    [edit]

    I just reverted this change by Atsirlin for a couple of reasons. The mouseover message was in Russian, so it wasn't clear what it was for, plus a sample of 10 random pages gave me two where an extra icon appeared but it did nothing more than allow you to download a text file saying "This WV article has no GPX map" or something like that. It is also not clear to me that an extra icon in the upper right by the map icon is necessarily a place we all agree to put such an option, nor is it entirely clear to me what the purpose of such a download would be. Texugo (talk) 11:36, 12 May 2015 (UTC)Reply

    Are you reading Traveller's pub? --Alexander (talk) 13:52, 12 May 2015 (UTC)Reply
    I was not aware of anything actionable regarding creating new icons in the upper right. At any rate, I hadn't gotten into that thread, which is only about 4 days old, but even reading it now, I do not fully understand what the purpose is, or whether the upper right is a nice, agreeable place for everyone to put that, or whether there are alternatives available. I do understand that we don't need a message in Russian or confusing error downloads on pages that don't actually offer whatever it is you're trying to offer. Can you explain in a little more detail what you're trying to do and why this would be the best and/or only way to accomplish that? Texugo (talk) 21:06, 12 May 2015 (UTC)Reply
    I apologize for not translating the message, but otherwise I see no problem with my edit. Everything worked fine for me when I added the GPX feature, and you left essentially no information on which pages produced the error, so there is no way of debugging. The relevant information about this feature is in the Pub and in Wikivoyage Lounge on meta. You can try it in every article in Italian or Russian Wikivoyage. Unfortunately, I don't have time to explain more because we are running the Wiki Loves Earth competition this month, and it is by no means an easy task. Since you were bold enough to revert my edit simply because you could not understand it and because you did not like the placement of the icon, I assume you are ready to proceed with the implementation of the GPX feature and figure out the origin of your problems with downloading GPX files. And I simply step back because urgent WLE tasks are waiting for me. Sorry. --Alexander (talk) 21:42, 12 May 2015 (UTC)Reply
    I reverted principally because I found no discussion here, no consensus for such a prominent icon, and because it was clearly buggy and not fully translated. I didn't realize at the time there was a discussion in the pub. Now that I've gone to the lounge on meta, I suppose I can understand the need/utility, but I still see no consensus for such a prominently-placed icon, especially given that only a certain kind of user will ever be interested in that. Is there a reason it can't be a small link under the dynamic map? And yes, it was buggy for 20% of the ones I checked. It offered to let you download a file with the pagename and the word "error" in the filename, and when you opened the file, it said no gpx was available. Texugo (talk) 22:12, 12 May 2015 (UTC)Reply

    Question about the Geo template

    [edit]
    Swept in from the pub

    I noticed that there are some articles about particularly large regions in which Template:Geo wasn't added (for example Russian Far East and South Asia). Has the Engvoy community ever determined that a certain group of articles shouldn't have the Geo template? ויקיג'אנקי (talk) 18:04, 31 August 2015 (UTC)Reply

    No, and why would we? But I think I can guess how it ended up that way. If I remember correctly, geo parameters were added to articles by using a bot harvesting them from Wikipedia or Wikidata. However some of our regional articles do not correspond to any administrative districts (or anything with a WP article), and so it was of course impossible to get any parameters for geo and the articles were left without geo tags by the bot. I've myself added manually coordinates to a couple of articles. BTW both w:South Asia and w:Russian Far East seem to lack coordinates. ϒpsilon (talk) 18:23, 31 August 2015 (UTC)Reply

    Another question about the Geo template

    [edit]
    Swept in from the pub

    Every how many weeks/months should the dynamic maps of each Wikivoyage edition get updated based on the Geo templates that have been recently added to the articles in the main space? During the recent month I have added A LOT of Geo templates to most the Hebvoy articles, yet the dynamic maps haven't been updated yet. ויקיג'אנקי (talk) 18:20, 31 August 2015 (UTC)Reply

    Joachim probably knows? ϒpsilon (talk) 18:28, 31 August 2015 (UTC)Reply
    Interesting, every Dynamic Map I have seen uses 'hard coded' geo coordinates rather than the Geo template. --Andrewssi2 (talk) 22:45, 31 August 2015 (UTC)Reply
    I am all for reusing coordinates rather than hard-coding them into each dynamic map, but how to do? By the way, could not the information be retrieved from Wikidata https://www.wikidata.org/wiki/Property:P625 (and overridden only if necessary)? I remember Wikidata also has a concept of object size, it could be reused as a default for zoom level (and overridden if necessary). Syced (talk) 04:55, 1 September 2015 (UTC)Reply
    Last Wikimedia data dump on 08/28/2015 [3]. Last update on 08/31/2015 at 11:30 UTC. He.WV has now 1228 geocoded articles [4]. -- Joachim Mey2008 (talk) 05:16, 1 September 2015 (UTC)Reply
    Actually, what is this all about? According to Template:Mapframe the longitude and latitude are required parameters, so unless there are changes coming to Wikidata what difference does it make? --Andrewssi2 (talk) 06:20, 1 September 2015 (UTC)Reply

    Geo Template Question

    [edit]
    Swept in from the pub

    Has the geo template been changed or limited to certain namespaces -- I had a geo template on a talk page and another page that now no longer appear - Matroc (talk) 05:43, 12 October 2015 (UTC)Reply

    Matroc, that was probably me. I used Javascript to attach it to the contentSub div, but I didn't realise the contentSub div was hidden on talk pages, and possibly user pages. I added a check for visibility, which might fix that. -- torty3 (talk) 07:41, 13 October 2015 (UTC)Reply
    The icon now appears for the geo map; however, it now appears at the bottom of user and user:talk page -- Matroc (talk) 08:39, 13 October 2015 (UTC)Reply
    I too noticed that the geo template sits at the bottom of the articles. However, I made an edit to an article (Koror) and then the icon was moved back up where it should be (just like the mysterious "blanking" of the ToC which was fixed by saving the article). But the fun doesn't stop there; when I search for Koror the icon is at the bottom of the article, when reloading at the top. This is true for some other random articles (e.g. Trabzon), but for others (e.g. Luxor) the icon is firmly at the top where it belongs. W-T-F??? ϒpsilon (talk) 09:37, 13 October 2015 (UTC)Reply
    Sometimes it's just a matter of caching, so old code is being shown, pretty normal quirk for MediaWiki. I usually purge any JS or CSS page when they get changed, though I got distracted this time round. Unfortunately the CSS position code conflicts between mainspace and user pages, which could be fixed with more JS, but I'd rather wait and see what will get pushed down from the TOC side first. -- torty3 (talk) 11:31, 13 October 2015 (UTC)Reply
    I wouldn't worry too much about User and User Talk pages as far as geo goes for now; especially since there are more important issues to resolve first - I can just physically move the geo on those pages and position it where I want it... Thanks. - Matroc (talk) 00:57, 14 October 2015 (UTC)Reply

    RDF metadata

    [edit]

    Apparently the template don't use RDF markup anymore. So, should a reference to RDF be removed from the top of this page? --Vadim Shlyakhov (talk) 11:22, 18 January 2016 (UTC)Reply

    Done --Vadim Shlyakhov (talk) 02:32, 24 January 2016 (UTC)Reply

    Again microformat

    [edit]

    This template uses geo microformat as above:

    <span class="geo">
     <abbr class="latitude">37.408183</abbr> 
     <abbr class="longitude">-122.13855</abbr>
    </span>
    

    How is about wrapping it with a hCard microformat? Like this:

    <span class="vcard">
    <span class="fn org url" href="{{canonicalurl:{{FULLPAGENAMEE}}}}">{{PAGENAME}}</span>
    <span class="category">article</span>
     <span class="geo">
      <abbr class="latitude">37.408183</abbr> 
      <abbr class="longitude">-122.13855</abbr>
     </span>
    </span>
    

    This way an article's location (coordinates) would be coupled with its name and url as well. --Vadim Shlyakhov (talk) 17:44, 18 January 2016 (UTC)Reply

    Page status indicator

    [edit]

    This icon should probably be moved to a page status indicator. ESanders (WMF) (talk) 15:58, 8 July 2016 (UTC)Reply

    Sorry I do not understand what you are trying to say here. Geo is not just an indicator icon, it is also a feature to allow a map to be viewed. Does this feature support such functionality? What advantage would changing this template to the method you are suggesting? --Traveler100 (talk) 16:23, 8 July 2016 (UTC)Reply
    If I understand correctly the suggestion is just to use a page status indicator instead of the current hodgepodge of JS, CSS and HTML for displaying the geo icon; none of the underlying geo map logic would change. Page status indicators would also make sense for the star and DOTM/OTBP icons. The issue is just finding someone with the time and knowledge to implement the changes and then remove the old HTML/CSS/JS hacks. -- Ryan • (talk) • 18:09, 8 July 2016 (UTC)Reply
    If the status indicators allow links and can be positioned properly relative to our pagebanners, I agree that's the way to go. Powers (talk) 00:27, 9 July 2016 (UTC)Reply

    Using coordinates from Wikidata

    [edit]

    I've just seen, that somebody has added coordinates to my recently created article Nanxun. Any reason why this template don't use data from Wikidata? It's additional work and redundant information to add this data manually here. -- DerFussi 09:16, 17 May 2017 (UTC)Reply

    The coordinates in Geo serve as map center for the dynamic map opened by clicking on the map symbol in the upper right corner. They are (or at least should be) adjusted in order to display the right part of the map. Therefore, they have the different meaning than simply 'city coordinates' from Wikidata and should not be mixed with those. --Alexander (talk) 12:35, 17 May 2017 (UTC)Reply
    But you can use it as a fallback, if the local coordinates are not provided. So you can type coordinates if they coordinates from WD are not good enough. On WV/de we uses this template for the same purpose (the map in the upper right corner) but normally there is no reason to adjust it. -- DerFussi 05:40, 18 May 2017 (UTC)Reply
    Yes, it could be done this way. --Alexander (talk) 08:09, 18 May 2017 (UTC)Reply

    Map layer in use?

    [edit]

    I see that some templates have used a layer parameter. Does this actually work? If so, where do I get more information on what layers exist and what they should be used for? • • • Peter (Southwood) (talk): 15:02, 11 July 2017 (UTC)Reply

    I don't think that applied to this template; it was on {{mapframe}} where it used to be possible to show tiles from some alternate source - such as "Mapnik". I believe that function was disabled. It may be possible to turn on/off some items in a mapframe, like the GeoJSON route lines and boundaries, but (looking at Trans-Siberian Railway's code) that seems to have been done using another parameter, "show=".
    Template:Mapframe/doc currently does not list nor explain "layer" or "show". Wikivoyage:How to use dynamic maps#Adding boundaries and tracks has only been haphazardly updated to reflect that mw:Extension:Kartographer has outright replaced GPX with GeoJSON. The documentation should likely be rewritten, as it's as clear as mud. Most existing itinerary which displayed GPX traces was never converted - or conversion was only attempted as a brief proof-of-concept which was never placed in the affected articles. K7L (talk) 12:12, 12 July 2017 (UTC)Reply

    need template syntax help

    [edit]
    Swept in from the pub

    For some reason part of my code works, but together does not. Passing an invoke result through a template fails but passing manually the same result works. This version of User:Traveler100/sandbox-coord add to the end of the Cairo page, as template or copy paste content, (Show preview not save). Why does {{Decdeglat}} give error if invoke of wikidata function used as parameter but works if manually pass the value? --Traveler100 (talk) 04:50, 26 July 2018 (UTC)Reply

    I think something to do with the String module as placing {{Decdeglong2}} in an article fails too. --Traveler100 (talk) 05:07, 26 July 2018 (UTC)Reply
    Not exactly positive but I think you are using parser function expr which may be an issue if a string is involved. If this is ompletely off base; I apologize in advance, but I might check the type and convert it to a number. -- Matroc (talk) 08:23, 26 July 2018 (UTC)Reply
    I think you are in the right area, I need to look at the area where specify the cut up of the degrees, minutes and seconds. Probably have an error in thre somewhere. --Traveler100 (talk) 17:08, 26 July 2018 (UTC)Reply

    Narrowed it down. I think the invoke wikidata is returning characters with html syntax and string is reading as actual characters so are a number of & in the results.

    • {{#invoke:Wikidata|getValueFromID|Q85|P625|FETCH_WIKIDATA}} give 30°2'40"N, 31°14'9"E
    • {{#invoke:String|len|30°3'22"N, 31°14'22"E}} gives 21
    • {{#invoke:String|len|s={{#invoke:Wikidata|getValueFromID|Q85|P625|FETCH_WIKIDATA}} }} gives 36

    So how to I get the invoke to be a normal string? --Traveler100 (talk) 19:22, 26 July 2018 (UTC)Reply

    Convert the 2 html characters - string.gsub(xxx,"'","\'") and string.gsub(xxx,""",'\"') might be viable -- that will give you the correct count... You can probably use Module:String replace function - I made a separation function. I am sure there is another way dealing with html or raw or something like that? -- Matroc (talk) 05:15, 27 July 2018 (UTC)Reply
    • Quick fix: {{#invoke:Sandbox/Matroc|convchar|{{#invoke:Wikidata|getValueFromID|Q85|P625|FETCH_WIKIDATA}}}} - {{#invoke:String|len|s={{#invoke:Sandbox/Matroc|convchar|{{#invoke:Wikidata|getValueFromID|Q85|P625|FETCH_WIKIDATA}}}}}} --30°2'40"N, 31°14'9"E - 20
    You might just be better off writing a single Module to handle the tasks rather than calling multiple Modules and as well as a template -- just something to consider -- Best wishes! Matroc (talk) 05:15, 27 July 2018 (UTC)Reply
    That does appear to have solved the main problem. Still finding a few odd cases that give errors. You are probably right though, would be better to write a single Module than use the many template calls I am using at {{geo/sandbox}}. Is becoming difficult to debug. Time for me to learn how to write Lua. Is there a quick teaching guide you can recommends? --Traveler100 (talk) 07:11, 27 July 2018 (UTC)Reply

    Plus codes

    [edit]
    Swept in from the pub

    Google Maps seems to now provide something called plus codes. Should we include plus codes in listings? If so, in what part of the listing should we include them? It seems like they could become very useful, particularly for businesses without street addresses. ---Selfie City (talk | contributions) 22:32, 25 August 2018 (UTC)Reply

    Would it be possible to create a new listing field for plus codes? ---Selfie City (talk | contributions) 22:44, 25 August 2018 (UTC)Reply
    What does this give us that we don't already have with (lat, long) co-ordinates? K7L (talk) 22:46, 25 August 2018 (UTC)Reply
    According to plus.codes/benefits, a plus code is more like an address than geo coordinates, and it means that residents "often can’t communicate where they live, disconnecting them from government services, transportation, loans, job opportunities and even disaster relief." That page also states that "[f]or individuals and families, plus codes can be used like a street address when the street has no name or doesn’t even exist. They give every place in the world an address, so everyone can easily say where they live, where their business is located, or where a parcel should be sent." Seems pretty useful to me, particularly in less developed countries where streets do not have names. ---Selfie City (talk | contributions) 23:07, 25 August 2018 (UTC)Reply
    Have any venues (hotels etc) published these codes on their website? Are there any GPS systems that let you use these codes as a destination? My inclination is to wait until there is significant usage by others. AlasdairW (talk) 23:27, 25 August 2018 (UTC)Reply
    It seems to be pretty recent, so it hasn't gotten to far yet. There is more information at the Google Blog. It apparently is a few years old but has only been included on Google Maps (near the address) very recently. ---Selfie City (talk | contributions) 00:30, 26 August 2018 (UTC)Reply
    It just seems like these plus codes would work well with WV. ---Selfie City (talk | contributions) 00:44, 26 August 2018 (UTC)Reply
    My understanding is that Google's plus codes are basically their own glorified replacement for latitude and longitude coordinates. As far as I can tell after reading their website for a few minutes, the only benefit of plus codes over regular coordinates is that they're a bit shorter and easier to memorize. Accordingly, I don't think we should add them to articles—let's stick to WGS coordinates, the international standard. If a user needs a plus code for some reason, they can always copy the coordinates from our article and paste them into Google Maps, which will convert them to plus codes. —Granger (talk · contribs) 00:58, 26 August 2018 (UTC)Reply

    ────────────────────────────────────────────────────────────────────────────────────────────────────Yes, I see. Then they're not really necessary. ---Selfie City (talk | contributions) 01:21, 26 August 2018 (UTC)Reply

    If it's Google's own proprietary system, there also may be copyright issues. -- AndreCarrotflower (talk) 03:54, 26 August 2018 (UTC)Reply
    not proprietary. Andree.sk (talk) 05:44, 26 August 2018 (UTC)Reply
    The use of non-standard schemes like https://what3words.com is nothing new, but these never seem to catch on; (lat, long) is more useful as it plays nice with GPS and with dynamic maps. K7L (talk) 13:36, 26 August 2018 (UTC)Reply
    Looking at the standard definition for plus codes, they appear to be a way of "coding" a lat/long. So the UK Parliament would be 9C3XGV2G+48, instead of 51.500312,-0.124187. One big catch is the use of abbreviated codes (GV2G+48 Westminster, London, UK), which miss out the "area code" and is a bit like writing a lat/long with only the values after the decimal point. If these codes catch on then we could look at providing a utility to convert between them at lat/longs. AlasdairW (talk) 22:52, 26 August 2018 (UTC)Reply
    I think it is weird that they talk about standard coordinates being hard to grasp and missing on many maps, and then try to replace them with a base-20 system, which probably is printed on no map. Even the length difference is quite marginal, 10 characters instead of 12 digits (plus N/S/E/W and decimal points, but those are easy to remember separately). So yes, I suppose it is just a strategy to increase use of their maps and tools. --LPfi (talk) 09:05, 27 August 2018 (UTC)Reply

    Alternative text for the icon

    [edit]

    Currently the Map mag.png icon has no alternative text, so people who are using screen readers or text based browsers have no clue what is it. I would like to add the alt=Full screen dynamic map parameter to the image to solve it.--City-busz (talk) 10:23, 1 December 2018 (UTC)Reply

    Yes Done.--City-busz (talk) 19:58, 6 December 2018 (UTC)Reply

    Can add the Show me where I am function of {{geo}} to {{Mapframe}}?

    [edit]
    Swept in from the pub

    Because the mobile version of the page does not display the Geo icon, and some pages will display the Mapframe, so I think the Mapframe needs to add the function of Show me where I am; visitors can use the mobile phone to watching the map of the Wikivoyage when they in outdoors, and know which one they are in location and destination location. Can add the Show me where I am function of {{geo}} to {{Mapframe}}? --✈ IGOR ✉ TALK?! .WIKIVOYAGER ! 15:50, 19 May 2019 (UTC)Reply

    Yes this is really needed, vital for a travel web page. Please support having this added by subscribing to task T208713 and adding a token. Also add your name to Wikimedia community wish. The problem is Wikivoyage does not have as many active contributors as Wikipedia so whenever a wish request comes here, it is virtually pointless as will never get the same number of votes as a Wikipedia requested function. --Traveler100 (talk) 19:23, 19 May 2019 (UTC)Reply
    Not really. We were organized for the previous Wishlist, and we won: top spot, easily. This round, we weren't as certain what to ask for. WhatamIdoing (talk) 19:56, 20 May 2019 (UTC)Reply
    I am very worried that this topic has been forgotten... --✈ IGOR ✉ TALK?! .WIKIVOYAGER ! 17:47, 21 May 2019 (UTC)Reply

    geo coord - wikidata coord check

    [edit]

    I have just discovered that as well as the Wikidata parameter coordinate location (P625) , which we use to check geo coords against, there is also coordinates of geographic center (P5140). This would be a better test and reference for Wikivoyage. However it is not used in many places, have only see for United States of America. Is it worth adding the complexity to first check against P5140 then if does not exist check against P625? --Traveler100 (talk) 05:29, 23 July 2019 (UTC)Reply

    I've made the changes in the {{Geo/sandbox}} to test it but there doesn't seem to be a lot of wikidata pages using it at the moment. See [5] -- WOSlinker (talk) 11:15, 23 July 2019 (UTC)Reply
    great, I will make some tests. Although not used much at the moment it may be useful going forward. I changed some country wikidata coordinates to centre of map but they were reverted by others. So this method would get round any disagreements on what the value would be. --Traveler100 (talk) 17:29, 23 July 2019 (UTC)Reply

    Overcoming the Geo template

    [edit]
    Swept in from the pub

    I just noticed in the case of Costa Adeje that the {{Geo}}... template at the bottom of the article had the wrong coordinates associated with it, placing the article right next to Los Cristianos on the overview map.

    But do we actually still need this template? Or do we need to place it at the bottom of articles? Wouldn't it be more useful to automatically place the map icon into the top right corner of an article and just draw the geo coordinates from the Wikidata item?

    The latter would overcome such potential errors like in the case of Costa Adeje. (Btw. the zoom argument is barely using anyone anyhow.) For articles without a geo-coded Wikidata item, one could just correct the Wikidata side, which makes sense in addition.

    Cheers Ceever (talk) 06:59, 25 March 2023 (UTC)Reply

    If an article has a mapframe, does it need Geo template? I don't remember which article, but I recently saw the template added to an article that had a mapframe. --FredTC (talk) 07:18, 25 March 2023 (UTC)Reply
    TBF, I never really understood the purpose of having a {{geo}} template. Its output looks very dated and archaic from a visual perspective; it's much easier to have a mapframe which does the same job anyway. SHB2000 (talk | contribs | meta) 07:23, 25 March 2023 (UTC)Reply
    AFAIR, the problem is that the mapframes can't be printed, so we are stuck with the 'poimap' fullscreen map, that you can access by the top-right map icon - which in turn uses the {{geo}} thing. wv.de actually use the solution proposed above - by clicking the globe there, it opens a full-width mapframe. But they too still have/use that {tl|geo}} apparently... -- andree 09:37, 25 March 2023 (UTC)Reply
    Ok, but why do we need print the map? Where is the use case?
    Couldn't we just integrate the geo template into the mapframe template, so there is one thing less to worry about?
    Ceever (talk) 13:25, 25 March 2023 (UTC)Reply
    I often print a map so that I have a backup in my pocket. A piece of paper doesn't get a flat battery.
    A benefit of the Geo template is it helps to locate a newly created article - if we put Mapframe in the city article template, it would just show a map of the world before any co-ordinates were added. We need a way of finding where the place is to add the article to Wikidata, and the Geo co-ordinates should show the middle of the area, when the WD values may be a different point. AlasdairW (talk) 14:13, 25 March 2023 (UTC)Reply
    Yes that's a good argument. I have an additional who, so:
    1. The geo template allows one finding the place before the article is added to Wikidata (allowing one to do that). Listings may also have coords (and thus show something sensible in the mapframe), but they may be off the place itself. I don't know whether anybody adds geo coords without adding coords to listings when creating an article.
    2. Except printed maps, I assume the full screen map is needed for offline viewing ("print" to a file).
    3. I use the old map to get coords. I don't know how to get coords from the mapframe one. There are also some other features that I think are missing from the mapframe one.
    LPfi (talk) 18:36, 26 March 2023 (UTC)Reply
    ad 1) - I'd say all the articles should have wikidata, perhaps we could create some category to get those problems sorted quickly? If it's possible...
    ad 3) when you open the "current mapframe" by the [] icon in its top right, you'll get to an URL containing the current coordinates and zoom. E.g. https://en.wikivoyage.org/wiki/Los_Cristianos#/map/0/13/28.0573/-16.7071 ... Zoom 13, lat=28.0573.... Quite a handy thing to adjust the mapframe :-) -- andree 06:05, 27 March 2023 (UTC)Reply
    Category:Articles with no Wikidata coords has 1,231 entries - many are regions and city districts where our boundaries don't match those used by Wikipedia (others include user page articles and travel topics which aren't relevant to this).
    Articles don't have Wikidata at the moment that they are created. Often a WD link is added the same day - minutes later if the creator knows WD, otherwise hours or days later if it is clear where the place is. AlasdairW (talk) 10:25, 27 March 2023 (UTC)Reply
    Also see Category:Articles Geo different to Wikidata for articles where Geo and WD differ by more than 100km. AlasdairW (talk) 11:34, 27 March 2023 (UTC)Reply
    Also, if you don't need the zoom level, you can get coordinates from the "External Maps" panel of the fullscreen mapframe, from the button on the lower right. They'll update when you scroll the map, so I assume it's the centerpoint of the window. Gregsmi11 (talk) 12:59, 27 March 2023 (UTC)Reply
    You can get some cordinates from the fullscreen mapframe, but they are not as useful for adding coordinates to lisatings. They are in degrees, minutes, seconds format, not decimal (which is needed for a listing), and it would be very hard to get precise cordinates to put the marker on a cafe, not the shop next door. AlasdairW (talk) 21:52, 27 March 2023 (UTC)Reply


    Discover



    Powered by GetYourGuide