www-apps/pmwiki - geobox
[anomen-overlay.git] / www-apps / pmwiki / cookbook / Geobox / readme.txt
blob7cedf94ddde49299081580284d614f75d21255ec
1 >>recipeinfo<<
2 Summary: Create links to various map sites from provided gps coordinates.
3 Version: 2011-08-23
4 Prerequisites: 
5 Status: 
6 Maintainer: [[~Anomen]]
7 Users: {{$FullName}-Users$Rating2} ([[{$FullName}-Users|View]] / [[{$FullName}-Users|Edit]])
8 Categories: [[Links]]
9 (:if exists {$Name}-Talk:)Discussion: [[{$Name}-Talk]](:ifend:)
10 >><<
11 !! Questions answered by this recipe
12 How to automatically create links for given gps coordinates to various map sites.
14 !! Description
15 Recipe creates links to various map sites from provided gps coordinates.
17 [[#notes]]
18 !! Notes
20 !!!Usage
21 Use geobox markup 
22 [@ (:geo 49°43.996 14°27.665 :) @]
24 to create link list:
25  ''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]]
28  !!!Installation
29  Download [[(Attach:)geobox.php]].
31  in config.php, add the following:
33  [@
34   include_once("$FarmD/cookbook/geobox.php");
35   @]
38 !!!Configuration
40 !!!!Map sites
41 You can modify list of links be changing @@$GeoBoxLinks@@ array.
44 In link address you can use these variables (prefixed by @@$@@ sign):
45 : LAT : quadrant N / S
46 : LON : quadrant E / W
47 : N  : latitude
48 : S : -latitude
49 : Nd : latitude (absolute value)
50 : Ndi : latitude (absolute value, integer part only)
51 : NSig : sign for N (empty for north, - for south)
52 : Nm : minutes of N (absolute value)
53 : Nmi : minutes of N (absolute value, integer part only)
54 : Ns : : seconds of N (absolute value)
55 : Nsi : seconds of N (absolute value, integer part only)
57 : E : longitude - values analogical to latitude
58 : W :
59 : Ed :
60 : Edi :
61 : ESig :
62 : Em :
63 : Emi :
64 : Es :
65 : Esi :
68   
69   [[#relnotes]]
70   !! Release notes
71   * 2010-06-12 - added to PmWiki Cookbook
72   : git repository : http://repo.or.cz/w/anomen-overlay.git/tree/HEAD:/www-apps/pmwiki/cookbook/Geobox
73   
74   [[#contributors]]
75   !! Contributors
76   * [[~Anomen]] (original author)
77   
78   [[#comments]]
79   !! Comments
80   >>comment<<
81   This space is for User-contributed commentary and notes.
82   Please include your name and a date (eg 2007-05-19) along with your comment.
83   Optional alternative:  create a new page with a name like "ThisRecipe-Talk" (e.g. PmCalendar-Talk).
84   >><< 
85   (:if exists {$Name}-Talk:)See discussion at [[{$Name}-Talk]](:ifend:)
86   >>faq display=none<<
87   
88   Q:
89   A:
90   
91