From 85a457d0e668758896d37b86716630b7ac178218 Mon Sep 17 00:00:00 2001 From: anomen Date: Tue, 23 Aug 2011 17:24:12 +0200 Subject: [PATCH] www-apps/pmwiki - geobox --- www-apps/pmwiki/cookbook/Geobox/geobox.php | 4 +- www-apps/pmwiki/cookbook/Geobox/readme.txt | 92 ++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 2 deletions(-) create mode 100644 www-apps/pmwiki/cookbook/Geobox/readme.txt diff --git a/www-apps/pmwiki/cookbook/Geobox/geobox.php b/www-apps/pmwiki/cookbook/Geobox/geobox.php index 192bb46..6a08009 100644 --- a/www-apps/pmwiki/cookbook/Geobox/geobox.php +++ b/www-apps/pmwiki/cookbook/Geobox/geobox.php @@ -11,8 +11,8 @@ (at your option) any later version. TODO: - * geobox for conversions (is it useful?) * GPX export (see sourceblock for howto) + * bearing calc. check 0deg, etc... */ @@ -30,7 +30,7 @@ SDV($GeoBoxDefaultFormat,'dm'); SDVA($GeoBoxLinks, array( 'maps.google.com'=>'http://maps.google.com/?q=$N%20$E', 'mapy.cz'=>'http://www.mapy.cz/?query=Loc:$N%20$E', -'atlas.cz'=>'http://amapy.atlas.cz/?q=$Ndi°$Nmi\'$Ns%22$LAT;$Edi°$Emi\'$Es%22$LON', +//'atlas.cz'=>'http://amapy.atlas.cz/?q=$Ndi°$Nmi\'$Ns%22$LAT;$Edi°$Emi\'$Es%22$LON', 'geocaching.com/maps'=>'http://www.geocaching.com/map/default.aspx?lat=$N&lng=$E', 'geocaching.com/near'=>'http://www.geocaching.com/seek/nearest.aspx?lat=$N&lng=$E&f=1' )); diff --git a/www-apps/pmwiki/cookbook/Geobox/readme.txt b/www-apps/pmwiki/cookbook/Geobox/readme.txt new file mode 100644 index 0000000..7cedf94 --- /dev/null +++ b/www-apps/pmwiki/cookbook/Geobox/readme.txt @@ -0,0 +1,92 @@ +>>recipeinfo<< +Summary: Create links to various map sites from provided gps coordinates. +Version: 2011-08-23 +Prerequisites: +Status: +Maintainer: [[~Anomen]] +Users: {{$FullName}-Users$Rating2} ([[{$FullName}-Users|View]] / [[{$FullName}-Users|Edit]]) +Categories: [[Links]] +(:if exists {$Name}-Talk:)Discussion: [[{$Name}-Talk]](:ifend:) +>><< +!! Questions answered by this recipe +How to automatically create links for given gps coordinates to various map sites. + +!! Description +Recipe creates links to various map sites from provided gps coordinates. + +[[#notes]] +!! Notes + +!!!Usage +Use geobox markup +[@ (:geo 49°43.996 14°27.665 :) @] + +to create link list: + ''49°43.996' 014°27.665'' [[http://www.mapy.cz/?query=Loc:49.73327%2014.46108 | mapy.cz]] [[http://maps.google.com/?q=49.73327%2014.46108|gmaps]] [[http://www.geocaching.com/map/default.aspx?lat=49.73327&lng=14.46108|geocaching.com/maps]] [[http://www.geocaching.com/seek/nearest.aspx?lat=49.73327&lng=14.46108&f=1|geocaching.com/near]] + + + !!!Installation + Download [[(Attach:)geobox.php]]. + + in config.php, add the following: + + [@ + include_once("$FarmD/cookbook/geobox.php"); + @] + + +!!!Configuration + +!!!!Map sites +You can modify list of links be changing @@$GeoBoxLinks@@ array. + + +In link address you can use these variables (prefixed by @@$@@ sign): +: LAT : quadrant N / S +: LON : quadrant E / W +: N : latitude +: S : -latitude +: Nd : latitude (absolute value) +: Ndi : latitude (absolute value, integer part only) +: NSig : sign for N (empty for north, - for south) +: Nm : minutes of N (absolute value) +: Nmi : minutes of N (absolute value, integer part only) +: Ns : : seconds of N (absolute value) +: Nsi : seconds of N (absolute value, integer part only) + +: E : longitude - values analogical to latitude +: W : +: Ed : +: Edi : +: ESig : +: Em : +: Emi : +: Es : +: Esi : + + + + [[#relnotes]] + !! Release notes + * 2010-06-12 - added to PmWiki Cookbook + : git repository : http://repo.or.cz/w/anomen-overlay.git/tree/HEAD:/www-apps/pmwiki/cookbook/Geobox + + [[#contributors]] + !! Contributors + * [[~Anomen]] (original author) + + [[#comments]] + !! Comments + >>comment<< + This space is for User-contributed commentary and notes. + Please include your name and a date (eg 2007-05-19) along with your comment. + Optional alternative: create a new page with a name like "ThisRecipe-Talk" (e.g. PmCalendar-Talk). + >><< + (:if exists {$Name}-Talk:)See discussion at [[{$Name}-Talk]](:ifend:) + >>faq display=none<< + + Q: + A: + + + \ No newline at end of file -- 2.11.4.GIT