Talk:GeoHack

Latest comment: 9 days ago by Lklundin in topic Worldwind Application ?

Google Maps

edit

Is there a reason why Google Maps is much more highlighted than the other competitors?? --84.44.177.118 18:00, 11 October 2009 (UTC)Reply

On English Wikipedia (Discussion) they thought it was too hard to find it in the list. I had suggested other ways of highlighting it but they opted for the simplest solution. There was some debate over using Google Maps or OpenStreetMaps (CC license). Dispenser 13:36, 12 October 2009 (UTC)
We have to get rid of this proprietary Google sh*t. I see no reason why to have a big "View this location in Google Maps" headline at the top of the English GeoHack page... OSM or other free mapping project should have such a headline there!!!--Kozuch 17:34, 14 September 2010 (UTC)
It was added by netbook users who found it too cumbersome to scroll down. I suspect there is a bais towards the top of the page, as evidenced by the high click rate of acme. Note, that Google Maps is four times more popular than its nearest competitor Bing. And for street maps, it is 20 times more popular than OpenStreetMaps (using the new top links number). Dispenser 01:10, 8 October 2010 (UTC)

#ob_start('ob_gzhandler');

edit

I'm having trouble with this part of geohack.php

  1. include "../common.php" ;
  2. ob_start('ob_gzhandler');

This causes the following error.

PHP Warning: ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: output handler 'ob_gzhandler' conflicts with 'zlib output compression' in /home/content/x/x/x/xxx/html/GeoHack/geohack.php on line 10

This is self explanatory, but is there a way to eliminate the use of ob_gzhandler from Geohack? This line doesn't allow the use of zlib.output_compression or ZEND. Great, Geohack gets compressed, but not the rest of the wiki.--Cojoilustrado 18:46, 24 December 2009 (UTC)

This issue was solved. Geohack requires allow_url_fopen ON. We had it off as per Mediwiki's security recommendation. --Cojoilustrado 20:07, 24 December 2009 (UTC)
Sorry, something else. We kept getting this message:

output handler 'ob_gzhandler' conflicts with 'zlib output compression' in /home/content/c/o/j/cojoilustrado/html/GeoHack/geohack.php on line 10

We # the ob_gzhandler mention in Geohack and it went away. Only God knows what else we broke now :( --Cojoilustrado 20:38, 24 December 2009 (UTC)

It is the "one liner" to enable gzip compression, your server may not support mod_gzip interface. See How to enable gzip compression with Php. Dispenser 19:56, 31 December 2009 (UTC)

enwiki GeoTemplate edits unnoticed

edit

This edit has not propagated from w:en:Template:GeoTemplate to http://toolserver.org/~geohack/geohack.php after 4½ days.

Also, there is an unanswered suggestion at w:en:Template talk:GeoTemplate#Ireland from June 2010.

Richardguk 00:54, 22 August 2010 (UTC)

Seems like there is quite a delay in propagating... maybe it is even done manually. Unfortunatelly no docs mention it. --Kozuch 06:48, 15 September 2010 (UTC)
The delay is on Wikimedia Foundation's side, their squid servers are not properly flushing after an edit. Although, it was better before the fix for the vector roll-out. Dispenser 01:14, 8 October 2010 (UTC)

transcluding enwiki mainpage

edit

I just discovered that http://toolserver.org/~geohack/geohack.php appears to be somehow transcluding the main page of enwiki. Please look into this. --70.36.159.31 22:24, 23 August 2010 (UTC)Reply

Never mind. The problem has gone away. --70.36.159.31 22:30, 23 August 2010 (UTC)Reply

Localization of OpenStreetMap page

edit

Hello, how can I get a localized version of the project=osm page displayed. E.g. if I got to [1] I'd like to have a different template (in French) called. I tried http://meta.wikimedia.org/wiki/Template:GeoTemplate/osm/fr but it does not seem to work. Thanks. Nakor 21:02, 29 September 2010 (UTC)

We initially intended the sub-pages to be used for other planets. The project= implementation probably wasn't as well thought out as it should have been. I'll give the code a closer look. Dispenser 02:15, 8 October 2010 (UTC)

Ordnance Survey

edit

Re the resource used by en:template:OS coord (and similar on several other wikis) which is currently at toolserver.org/~rhaworth/os/coor_g.php. Since it is written in PHP, I would like to move it to /~geohack/ and modify it so that it includes geohack.php instead of redirecting to it.

Could you please: a) point me to the current source code for geohack.php and the other modules and b) advise me of the installation procedure. — RHaworth 13:27, 16 February 2011 (UTC)

The geohack.php source code is in the SVN repository and instructions on this page. I can either commit it myself or file a JIRA request to add you as a maintainer after which you could commit it you're self. But please have a clear plan for eventual integration. Dispenser 19:54, 22 February 2011 (UTC)

Please file a request to add me as a maintainer but, initially, I shall ask you or someone else to approve any changes before I commit them. RHaworth 21:13, 22 February 2011 (UTC)

edit

Coordinates on English Wikivoyage are currently linking coordinates to GeoHack. Works fine but the link created in the title is back to the Wikipedia page. Is there a possibly of changing this so it point back to the calling page on Wikivoyage? Either the page is smart enough to recognise where the call came from or an additional parameter to state which wiki project.--Traveler100 10:04, 11 January 2013 (UTC)

User:Dispenser, User:Kolossos, User:Magnus_Manske, I'd like to renew the User:Traveler100's question.
Is it possible to allow the parameter "project=" to be used in conjunction with the value "wikivoyage" to be used not only with the back-link but also to use the local it:voy:Template:GeoTemplate.
Please let me know (pinging me). Thanks, --Andyrom75 (talk) 17:40, 25 December 2021 (UTC)Reply

&nbsp; in the title-parameter of the URL of the GeoHack

edit

A &nbsp;-entity placed within the text that's put into the title-parameter in the URL of the GeoHack is not changed into a non-braking space by the GeoHack (like one would expect an entity would be) but is written as text (&nbsp;) in the headline of the delivered GeoHack-page. If one klicks a link to any other language, the headline gets cut of before the &nbsp; and stays cut of no matter to which language you klick afterwards. It would be very helpful if GeoHack wouldn't cut of anything but keep the title as it is. Beyond this, the advantages and disadvantages of replacing the &nbsp;-entity by a non-breaking space should be discussed and calculated.

By the way: The link to jira:GeoHack (bug tracker) in the See also-section of the GeoHack-page is still directed to Toolserver and thus probably outdated (or shall it be newly created at the place the link directs to (mediawiki.org/w/index.php?title=Toolserver:Jira:GeoHack&action=edit&redlink=1)?). The Jira-link in the box on this talkpage is also rotten but with a different result. --X:: black ::X (talk) 14:09, 29 March 2017 (UTC), updated --X:: black ::X (talk) 14:35, 29 March 2017 (UTC), updated 21:44, 14 April 2018 (UTC)Reply

Indeed I have no idea what's the recommended issue tracker, and we should find out. Maybe it's https://bitbucket.org/magnusmanske/geohack/issues, given Magnus is one of the maintainers listed on https://tools.wmflabs.org/?list . --Nemo 14:20, 29 March 2017 (UTC)Reply

Language change doesn't work

edit

Links in the 'Languages' block lead to 404 pages. Taking for example https://tools.wmflabs.org/geohack/geohack.php?params=60___N_30___E, instead of https://tools.wmflabs.org/geohack/ru/60___N_30___E the url linked should be https://tools.wmflabs.org/geohack/geohack.php?params=60___N_30___E&language=ru. Ain92 (talk) 11:14, 5 June 2017 (UTC)Reply

As far as I can see, the links to the languages in GeoHack produce an falsely structured and thus invalid URL if there is no titel given to the page of Geohack. This problem should be solved but I can't do that. As a workaround to this problem you may do the following: Enter the parameter title into the URL https://tools.wmflabs.org/geohack/geohack.php?params=60_N_30_E&title=. By this parameter you may also give the page a titel, for example the titel "example": https://tools.wmflabs.org/geohack/geohack.php?params=60_N_30_E&title=example; a space in the title must be entered as +-character into the URL (characters not allowed in a URI have to be URL-encoded).
(The links to the GeoHack produced by the w:en:Template:Coord usually don't necessarily need the paramter title, as long as the coordinates refer to the thing the article is about (an not only to a part of this thing or something else) because they also use the parameter pagename that contains the article title of wikipedia. The parameter pagename is used as fallback, if there is no parameter title.) --X:: black ::X (talk) 09:23, 15 June 2017 (UTC), updated 09:31, 15 June 2017 (UTC) and 23:42, 9 February 2018 (UTC)Reply

Difference between {pagename}, {pagenamee} and {pagename_gmaps} / between {title} and {titlee}

edit

In section "Replacement variables" subsection "Coordinate title" it says "{pagename} - Underscore page name, as given by the pagename or determined by the HTTP referrer. […] {pagename_gmaps} - work around for google maps, will be replaced by {pagenamee}". What does this work around look like? How does it work? What is the difference between {pagename} and {pagename_gmaps}?

{pagenamee} is mentioned in a way indicating that it would be still to come but in w:en:Template:GeoTemplate it is already in use. What is the difference between {pagenamee} an {pagename_gmaps} and what is the difference between {pagenamee} an {pagename}?

In w:en:Template:GeoTemplate also the replacement variable {titlee} is used. What is the difference between {title} and {titlee}? --X:: black ::X (talk) 11:23, 14 June 2017 (UTC)Reply

Ordnance Survey grid references

edit

Conversion from latitude and longitude to grid reference appears to be incorrect, as the grid reference points to a location north-west of the coordinates. Compare https://tools.wmflabs.org/geohack/geohack.php?pagename=Grade_II*_listed_buildings_in_Calderdale&params=53.724428_N_-1.860731_E_region:GB_type:landmark&title=Town+Hall with https://tools.wmflabs.org/os/coor_g/?pagename=Grade_II*_listed_buildings_in_Calderdale&params=SE0928725345_region%3AGB_scale%3A25000 - this can be seen on sites linked from the first page that use the grid reference in the URL, particularly streetmap.co.uk - the second page works correctly, converting from grid reference to latitude and longitude. Peter James (talk) 22:37, 7 September 2017 (UTC)Reply

Google Earth Webclient not supported

edit

Can you please add support for the Web Version of Google Earth?

earth.google.com/web/

No Support in other language

edit

Please look here Wikipedia:Fragen zur Wikipedia#GeoHack in anderer Sprachversion --2003:DE:716:5A27:D4C2:3465:2BDE:80F2 11:44, 15 April 2018 (UTC)Reply

This problem is solved, see w:de:Wikipedia:Fragen_zur_Wikipedia/Archiv/2018/Woche_15#GeoHack_in_anderer_Sprachversion. --X black X (talk) 11:39, 29 April 2018 (UTC)Reply

Map on GeoHack

edit

Hello! GeoHack shows Crimea only Russia, but it's wrong. On OSM to Crimea shown as Russia and Ukraine. Screenshot https://pp.userapi.com/c844618/v844618710/5cc6f/MycMVmRghnM.jpg Will this problem be solved?--AlexKozur (talk) 19:12, 29 May 2018 (UTC)Reply

Coordidnate variables

edit

Is it possible to integrate things like https://github.com/klokantech/epsg.io so that it can supply coordinate of input in more different formats? C933103 (talk) 14:30, 31 August 2018 (UTC)Reply

Taiwan Government NLSC: best maps of Taiwan

edit

Here are some of the best maps of Taiwan. E.g., https://maps.nlsc.gov.tw/T09/mapshow.action?lat=24.189486&lon=120.875246&zoom=18 You have to see their docs for the current URL spec. Jidanni (talk) 03:03, 6 October 2018 (UTC)Reply

Use outside the Wikimedia house

edit

Is there documentation on how one could use this or underlying code on a different project altogether outside the Wikimedia assets? I'm thinking of https://www.werelate.org/ which uses version 1.7.1. Thanks for the referral. --Ceyockey (talk) 01:32, 29 August 2019 (UTC)Reply

Fix for incorrect conversion to Ordnance Survey

edit

I have a fix for the incorrect conversion of lat/long to Ordnance Survey grid ref in Geohack, and have tested it on my own client. (Thanks to en:User:RHaworth and de:Benutzer:Telford for actually making the code). How do I check the fix into geohack? Generating a pull request on bitbucket does not seem to work. Would the maintainers (en:User:Dispenser? en:User:Magnus Manske?) like a code drop of some sort? --- Hike395 (talk) 10:32, 9 October 2019 (UTC)Reply

Created a Bitbucket issue for GeoHack per instructions on Magnus Manske's talk page. — hike395 (talk) 18:31, 23 November 2019 (UTC)Reply

Language question

edit

How to get the corresponding language to the pagename, thus the referrer wikis language? "language" and "CONTENTLANG" seem to mainly follow in sligthly different ways the clicks on the language bar left. For coordinates this doesn't matter, but how can tools retain the right wiki in relation to the localized pagename? Even more confusing if the wiki has no own template and uses the english one, how to keep the link to the origin wiki? Thank you! --DB111 (talk) 10:24, 12 October 2019 (UTC)Reply

Possible answer: Wikis without own template should set "language" parameter anyway, so this could be used. Working neither, is trying to load a non-existing GeoHack.js in this language. --DB111 (talk) 13:15, 13 October 2019 (UTC)Reply
Example: Open this article, click on the coordinates and you are on GeoHack. How to get then the origin wiki ("te")? --DB111 (talk) 15:56, 14 October 2019 (UTC)Reply

"Roscosmos Geoportal" in GeoHack does not work

edit

For example GeoHack for en:Moscow Wikipedia article is [2]. Link for "Roscosmos Geoportal Map" is [3] and for "Roscosmos Geoportal Satellite" is [4]. Both "Roscosmos Geoportal" links do not work. LimaMario (talk) 19:35, 15 December 2019 (UTC)Reply

Translation for sr.wikipedia.org

edit

Why is not translation of the map textual notes such as "Hold Ctrl or ? and hover over a link to read an article summary" applied for sr.wikipedia? I guess translations have been already entered at the proper place. --5.43.82.5 01:45, 4 March 2020 (UTC)Reply

GeoHack tool stopped working after tools.wmflabs.org -> toolforge.org url change

edit

@Dispenser, Kolossos, and Magnus Manske: See for example https://geohack.toolforge.org/geohack.php?language=cs&pagename=Brunt%C3%A1l&params=49.988449251745_N_17.464759014801_E_type:city_region:CZ --Dvorapa (talk) 14:35, 6 June 2020 (UTC)Reply

Why don't you add Degrees Decimal Minutes (DDM) to your output. Geocachers would welcome this!

edit

Why don't you add Degrees Decimal Minutes (DDM) to your output. Geocachers would welcome this!


$ geo-coords 35.241034 -111.597553
35.241034, -111.597553
N35.241034 W111.597553
N35 14' 27.722400" W111 35' 51.190800"
N35 14.462 W111 35.853

GeoHack not working in en.wp

edit

When clicking on coordinates in the English Wikipedia, I'm currently getting a "308 Permanent Redirect" error page rather than the expected GeoHack page. GeoHack was working properly yesterday. Deor (talk) 17:55, 7 July 2020 (UTC)Reply

@Deor: Fixed here. --Ahecht (talk) 16:14, 9 July 2020 (UTC)Reply
edit

Links to Yahoo! Maps Map, Satellite, and Hybrid redirect to Yahoo! search page when called at least from da:w and ru:w. See, e. g. [5]. Yahoo! Maps are not active since 2015. Can anyone remove them from geohack? Jarash (talk) 09:11, 5 November 2022 (UTC)Reply

Language fallback

edit

For sub-language codes, such as de-DE:

https://geohack.toolforge.org/geohack.php?language=de-DE&params=48.137222222222_N_11.575555555556_E

can the fallback be to the parent language ("de"), not English? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:35, 19 July 2023 (UTC)Reply

No longer working for Google or Bing maps

edit

When using an android mobile device, the tool simply opens Google Maps or Bing (depending on which you click), but it doesn't open it at the location requested.

It stopped working with Google a few months ago, and I noticed it stopped with Bing today. 2603:9000:F304:F2F9:CDCF:1EAD:BB8F:FFBD 12:59, 27 July 2023 (UTC)Reply

For me, Google Maps and Bing are working as expected with Android 11 on Galaxy A70. Jean-Louis² (talk) 17:00, 4 August 2023 (UTC)Reply
This is the case for me too for Google maps 2403:5807:8AB9:1EC6:7875:2CFE:F160:11B8 04:35, 14 October 2023 (UTC)Reply

Geohack seems to be down

edit

Example link: https://geohack.toolforge.org/geohack.php?pagename=New_York_City&params=40.7127_N_74.0059_W_region:US-NY_type:city(8804190) results in a 504 error. Ping to maintainers: @Dispenser, Kolossos, and Magnus Manske: . Xaosflux (talk) 13:43, 26 August 2024 (UTC)Reply

FYI: Appears to be responding again, don't have details of the restoration. Xaosflux (talk) 15:13, 26 August 2024 (UTC)Reply

NASA FIRMS ?

edit

NASA's Fire Information for Resource Management System (FIRMS) website is maintained to provide the public with (near) real-time information on "thermal anomalies" (typically wildfires). Being open, accessed just via a web-browser and freely usable on Wikipedia/Wikimedia it is however usable for a range of topics - and it does include Google Maps like imagery (although in lower resolution). As such, I think it would be useful to include this service here. For example, for the https://en.wikipedia.org/wiki/Darvaza_gas_crater it looks like this: https://firms.modaps.eosdis.nasa.gov/map/#d:24hrs;@58.45,40.25,14.00z

Thanks. Lklundin (talk) 20:48, 10 October 2024 (UTC)Reply

You are welcome to add it to w:Template:GeoTemplate yourself. * Pppery * it has begun 21:39, 10 October 2024 (UTC)Reply
Thanks! I did so, and the template seems OK. But is there (quite) some latency before the new template shows up when invoked by following the link from e.g. the above https://en.wikipedia.org/wiki/Darvaza_gas_crater to https://geohack.toolforge.org/geohack.php?pagename=Darvaza_gas_crater&params=40.2525_N_58.4396_E_type:landmark_region:TM ? Because I don't see the new entry. Lklundin (talk) 15:23, 13 October 2024 (UTC)Reply
I see it now. * Pppery * it has begun 16:38, 13 October 2024 (UTC)Reply
I do too. Thanks for your help and patience! Lklundin (talk) 18:25, 13 October 2024 (UTC)Reply

Worldwind Application ?

edit

The table over Global/Trans-national services includes an entry for en:NASA WorldWind, with a URL that starts with "worldwind://" (and not e.g. "https://"). What application can be used to access the worldwind URL ? Thanks. Lklundin (talk) 11:59, 26 October 2024 (UTC)Reply

Return to "GeoHack" page.