2 Summary: Create links to various map sites from provided gps coordinates.
6 Maintainer: [[~Anomen]]
7 Users: {{$FullName}-Users$Rating2} ([[{$FullName}-Users|View]] / [[{$FullName}-Users|Edit]])
9 (:if exists {$Name}-Talk:)Discussion: [[{$Name}-Talk]](:ifend:)
11 !! Questions answered by this recipe
12 How to automatically create links for given gps coordinates to various map sites.
15 Recipe creates links to various map sites from provided gps coordinates.
22 [@ (:geo 49°43.996 14°27.665 :) @]
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]]
29 Download [[(Attach:)geobox.php]].
31 in config.php, add the following:
34 include_once("$FarmD/cookbook/geobox.php");
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
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
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
76 * [[~Anomen]] (original author)
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).
85 (:if exists {$Name}-Talk:)See discussion at [[{$Name}-Talk]](:ifend:)