dev-util/idea-* minor fixes
[anomen-overlay.git] / www-apps / pmwiki / cookbook / Geobox / test-patterns.php
blobc7a3bae472b7164efce29056004b4c77fed4cb29
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
4 </head>
5 <body>
7 <p>
8 List of patterns which are quaranteed to work in all versions of geobox.
9 </p>
11 <?php
13 function Markup($a=0, $b=0, $c=0, $d=0)
15 return ""; // dummy
18 function SDV(&$v,$x) { if (!isset($v)) $v=$x; }
19 function SDVA(&$v,$x) { /*required for link list, not used here */ }
21 define("PmWiki", "1");
22 include("geobox.php");
24 $c[] = "N50 E14";
25 $c[] = "50° 14°";
26 $c[] = "50° N 14° E";
27 $c[] = "N 50° E 14°";
28 $c[] = "S 50° W 14°";
29 $c[] = "50.0 14.0";
30 $c[] = "50.230° 14.440°";
31 $c[] = "50°35.4' 14°22'";
32 $c[] = "50.3°35.4'44\" 14.1°22'22\"";
33 $c[] = "N 50.3°35.4'44'' E14.1°22'22''";
34 $c[] = " 50.3°35.4'44''N 14.1°22'22''W";
36 foreach($c as $coord)
38 $r = geobox_parse_coords($coord);
39 echo "<div>Str: \"$coord\" -> [${r[0]},${r[1]},${r['result']}] </div>\n";
45 </body>
46 </html>