YOU CAN EDIT THIS PAGE! Just click any blue "Edit" link and start writing!

Wikitravel talk:Geocoding

From Wikitravel
Jump to: navigation, search

Is there a Standard Suggested Way of deciding which point of an area shall be selected as the Geocode for the area?

Are there any free databases of Geocodes we can rip off copy freely? -- Colin 01:38, 18 Nov 2005 (EST)

I've been using Multimap; it usually comes up with a good point in a city. As far as free databases, I think the TIGER database for US locations is public domain. --Evan 02:56, 18 Nov 2005 (EST)
Many big cities have a milestone/building that is the official center. --elgaard 13:22, 19 Dec 2005 (EST)

Related projects[edit]

Thanks to Elgaard for pointing out OpenStreetMap. I just noticed Geowiki, which is about the only way I'd like interactive maps to work on Wikitravel. --Evan 15:26, 26 Jan 2006 (EST)


Is it possible to add altitude. It usefull to know for acclimatization if your travelling to altitude.

Maybe we could add an {{altitude|somevalue}} template? --Evan 16:19, 25 February 2006 (EST)

Smaller focus[edit]

Is there a project that is currently undertaking the creation of a coordinates template for individual locations (ie, restaurants, hotels, etc.)? With the rising popularity of certain mapping programs such as Google Earth, it would be nice to provide specific coordinates for travellers. - Cybjorg 06:28, 14 March 2006 (EST)

Yes, I think it would also help with making our own maps. We're including coordinates in the listing templates, see Wikitravel talk:Using Mediawiki templates for details. --Evan 09:06, 14 March 2006 (EST)


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>

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

Displaying coordinates on page[edit]

Note how Wikipedia displays co-ordinates on page (e.g in the top-right of [1]) and links the to a powerful mapping service. Andy Mabbett 07:08, 9 December 2006 (EST)

converting into a right format[edit]

It would great to supply detailed recommendations on how to convert format like '31°29'52.52"N 9°45'49.79"W' into 31.5..; 9.7... -- both for degree-minute-second part, and for west-east/north-south: what is + and what is -. --DenisYurkin 07:07, 1 February 2008 (EST)

Done as a draft: Wikitravel:Geocoding#Converting from traditional format. Please welcome to improve it further. --DenisYurkin 04:58, 6 February 2008 (EST)
Check out 13:58, 15 February 2008 (EST)

encouraging property owners to share latlongs[edit]

Discussion related to this article: Wikitravel talk:Accommodation listings#nearest attractions

Map link: almost hidden in the toolbox[edit]

When a page contains a GEO template, a link for a map shows up in the Toolbox pane on the left of the page. However, this option is so obscure that even seasoned veterans of the site may not notice it.

At the same time, adding the actual coordinates to the page would show up in printouts and other output, so people could plug them into their gps units. If I were taking a leisurely drive up to Chicago from St. Louis, I might want to stop at a few small towns with historic pasts, and would want to play with my gps and a map to decide what's acceptably close to my path and what isn't. I have been trying to play with the unused Coordinates template, but have yet to come up with a syntax that displays the coordinates properly. But it does display in a box on the main text.

Combining the box and display of the coordinates template and the map linkage of the geo template would combine the best of both worlds. Since there are about 1,000 pages using the geo template, and none using the coordinates template, perhaps the geo template could be updated to call the coordinates template and pass it the appropriate values, and also reference the map link?

We already have guidance that you should only use the Geo template for areas which are reasonably small, such as a city, since it only permits a single coordinate to be entered. There are databases which provide top/bottom/left/right coordinates for states, countries, and other large units to form a rectangle. If someone were to do large-scale work on these templates it would be good to include two more optional parameters to support future expansion.

I also notice that the Geo template seems to only work in the Main namespace? When I try to use it on Wikitravel:Graffiti wall, the map link won't show up. So kind of hard to test. Bill in STL 18:45, 6 August 2010 (EDT)


Does anyone know why the browser-window title bar for Wikitravel:Geocoding says "Geocoding travel guide"? Other Wikitravel-namespace pages just display the name of the page ("e.g., "Wikitravel:Don't tout"). LtPowers 10:36, 4 December 2011 (EST)

That's bizarre. The Main Page uses a <titleoverride> tag, but that's not the case here. I assume there must be something configured on the back-end that is causing the change? -- Ryan • (talk) • 13:39, 4 December 2011 (EST)
I'd guess it is something to do with the rdf in the text, since it causes name page wierdness elsewhere, even though it is in nowiki text. I'll remove it and see if I'm right. --Inas 17:28, 4 December 2011 (EST)
I'm right. --Inas 17:29, 4 December 2011 (EST)
I fixed it by changing "<" into "&lt;". Still don't understand why it happens, though. But thanks for the detective work. LtPowers 14:45, 5 December 2011 (EST)
Well, it is definitely a bug. Looks like the code that generates page titles follows a different logical path when there is RDF on the page. Probably another bug to not ignore RDF within nowiki brackets. --Inas 15:34, 5 December 2011 (EST)