Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
Geotag and negative coordinates
Avatar
galopax #1
Member since Oct 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: Geotag and negative coordinates
Hi to all in my first post in this forum.

I am having a problem with Geotag and the negative coordinates.

{ {Geotag> lat:37.72342, lon =-1.09084, alt=90, placename=CTT-UM, region: ES-MC, country:ES}}

Putting this code lon does not recognize and does not see. If I remove the negative sign, yes recognizes it and is OK.

Has someone had a similar problem?

Thank you for advance
GALoPaX
Avatar
rh75 #2
Member since Jan 2015 · 20 posts
Group memberships: Members
Show profile · Link to this post
I am not familiar with geotag or how it works.

Is your issue that it doesn't become a hyperlink?
I removed the space after the first curly bracket and it produced the link as required. Just in case it was a syntax issue and you hadn't just pasted with the space to show the code.

{{Geotag> lat:37.72342, lon =-1.09084, alt=90, placename=CTT-UM, region: ES-MC, country:ES}}
Avatar
rh75 #3
Member since Jan 2015 · 20 posts
Group memberships: Members
Show profile · Link to this post
Actually I've just used your example and worked out that the geotag.php file needs to be updated located in the syntax folder.

Line 72 and 73 need to be changed from
preg_match ( "(lat[:|=]\d*\.\d*)", $tags, $lat );
preg_match ( "(lon[:|=]\d*\.\d*)", $tags, $lon );

to
preg_match ( "(lat[:|=]-?\d*\.\d*)", $tags, $lat );
preg_match ( "(lon[:|=]-?\d*\.\d*)", $tags, $lon );

ref: http://sourceforge.net/p/dokuwikispatial/issues/9/
It seems it's been updated, but not in this plugin.
Avatar
galopax #4
Member since Oct 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: [Solved] Geotag and negative coordinates
Thank you, rh75. Everything is ok. :-)
GALoPaX
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-11-12, 05:59:44 (UTC +01:00)