Difference between revisions of "User:Sourcerer/KML tool"

From Geohashing
imported>Sourcerer
m (Usage)
imported>Sourcerer
m (Tests)
Line 29: Line 29:
 
Please put bugs and requests on the [[User talk:Sourcerer/KML tool|discussion tab]].
 
Please put bugs and requests on the [[User talk:Sourcerer/KML tool|discussion tab]].
  
== Tests ==
+
==Tests==
  
These tests passed on a weekend. On weekdays when the [[30W Time Zone Rule]] rule applies, things are a bit more chaotic.
+
{| class="wikitable"
 
+
|-
* [http://nbest.co.uk/kmlGeohash/index.php?lat=0&lon=0&skins=6 Test equator] - Looks OK.
+
|
* [http://nbest.co.uk/kmlGeohash/index.php?lat=0&lon=179&skins=6 Test round the back] - The coordinates are shifted to prevent wrapping at +/- 179.999
+
:'''2008-05-21'''
* [http://nbest.co.uk/kmlGeohash/index.php?lat=-33&lon=149&skins=6 Australia] - Australia looks OK.
+
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=89&lon=0&skins=2 89,0]
* [http://nbest.co.uk/kmlGeohash/index.php?lat=33&lon=-84&skins=6 Atlanta] - Atlanta looks OK.
+
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=89&lon=-30&skins=2 89,-30]
* [http://nbest.co.uk/kmlGeohash/index.php?lat=89&lon=-0&skins=6 North pole] - The coordinates are shifted to prevent wrapping at +/- 89.999
+
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=51&lon=0&skins=2 Grenwich]
* [http://nbest.co.uk/kmlGeohash/index.php?lat=-89&lon=179&skins=6 South pole] - The coordinates are shifted to prevent wrapping at +/- 89.999
+
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=0&lon=0&skins=2 0,0]
* [http://nbest.co.uk/kmlGeohash/index.php?lat=-50&lon=-32&skins=6 -50, -32 after 30W rule] - South Georgia and Zavodovski islands.
+
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=0&lon=-30&skins=2 0,-30]
* [http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=-50&lon=-32&skins=6 -50, -32 before 30W rule] - South Georgia and Zavodovski islands.
+
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=-89&lon=0&skins=2 -89,0]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=0&lon=179&skins=2 0,179]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=0&lon=-179&skins=2 0,-179]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=33&lon=-84&skins=2 Atlanta]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=-33&lon=149&skins=2 Australia]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=-50&lon=-32&skins=3 SouthGeorgia]
 +
|
 +
:'''Yesterday'''
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=89&lon=0&skins=2 89,0]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=89&lon=-30&skins=2 89,-30]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=51&lon=0&skins=2 Grenwich]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=0&lon=0&skins=2 0,0]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=0&lon=-30&skins=2 0,-30]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=-89&lon=0&skins=2 -89,0]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=0&lon=179&skins=2 0,179]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=0&lon=-179&skins=2 0,-179]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=33&lon=-84&skins=2 Atlanta]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=-33&lon=149&skins=2 Australia]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=-50&lon=-32&skins=3 SouthGeorgia]
 +
|
 +
:'''Today'''
 +
:[http://nbest.co.uk/kmlGeohash/index.php?lat=89&lon=0&skins=2 89,0]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?lat=89&lon=-30&skins=2 89,-30]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?lat=51&lon=0&skins=2 Grenwich]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?lat=0&lon=0&skins=2 0,0]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?lat=0&lon=-30&skins=2 0,-30]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?lat=-89&lon=0&skins=2 -89,0]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?lat=0&lon=179&skins=2 0,179]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?lat=0&lon=-179&skins=2 0,-179]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?lat=33&lon=-84&skins=2 Atlanta]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?lat=-33&lon=149&skins=2 Australia]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?lat=-50&lon=-32&skins=3 SouthGeorgia]
 +
|
 +
:'''Tomorrow'''
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=89&lon=0&skins=2 89,0]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=89&lon=-30&skins=2 89,-30]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=51&lon=0&skins=2 Grenwich]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=0&lon=0&skins=2 0,0]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=0&lon=-30&skins=2 0,-30]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=-89&lon=0&skins=2 -89,0]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=0&lon=179&skins=2 0,179]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=0&lon=-179&skins=2 0,-179]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=33&lon=-84&skins=2 Atlanta]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=-33&lon=149&skins=2 Australia]
 +
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=-50&lon=-32&skins=3 SouthGeorgia]
 +
|}
  
 
== Source Code and Documentation ==
 
== Source Code and Documentation ==

Revision as of 09:20, 25 January 2016

Double check the output - it's not thoroughly tested yet!

This calculator creates a KML file.

If Google Earth or another application that understands this file format is installed, it should launch and display the hashpoints for your specified date and graticule.

Sourcerer KML.jpg

Usage

Use this input form or modify the web address below ...

http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=52&lon=0&skins=2

If any URL parameter is omitted, a default value is used instead.

  • date - formatted yyyy-mm-dd - the default is today's date - alternatively try for example, 1 for tomorrow or -2 for the day before yesterday.
  • lat - your graticule latitude - the default is 51 (Grenwich London).
  • lon - your graticule longitude - the default is 0 (Grenwich London).
  • skins - like an onion, the number of layers of points surrounding the home point - the default is 1 giving 9 hashpoints - the limits are 0 to 6.
  • debug - check this or add '&debug=debug' to expose the guts of the algorithm.

Up to six skins are needed for grand days out like this ...

All stops in consecutive order:
  • Sourcerer provided this (his words!) "Table of awesomeness"
Lat/Lon
2015-08-02
11 12 13 14 15 16 17
49 B B 5
09:51
6
11:56
7
13:23
8
14:57
9
16:50
48 4
06:36
3
04:24
2
02:41
1
00:47
A
n/a
11
Start: 22:00
End: 20:48
10
18:53
  • A - Inaccessible mountain forest.
  • B - Backup hashpoint, not visited.

Bugs and feature requests

Please put bugs and requests on the discussion tab.

Tests

2008-05-21
89,0
89,-30
Grenwich
0,0
0,-30
-89,0
0,179
0,-179
Atlanta
Australia
SouthGeorgia
Yesterday
89,0
89,-30
Grenwich
0,0
0,-30
-89,0
0,179
0,-179
Atlanta
Australia
SouthGeorgia
Today
89,0
89,-30
Grenwich
0,0
0,-30
-89,0
0,179
0,-179
Atlanta
Australia
SouthGeorgia
Tomorrow
89,0
89,-30
Grenwich
0,0
0,-30
-89,0
0,179
0,-179
Atlanta
Australia
SouthGeorgia

Source Code and Documentation