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

From Geohashing
imported>Sourcerer
m (KML Tool)
imported>Sourcerer
m (Tests)
Line 40: Line 40:
 
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=49&lon=8&skins=2 Mannheim]
 
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=49&lon=8&skins=2 Mannheim]
 
:[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=-33&lon=149&skins=2 Australia]
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=-50&lon=-32&skins=3 South Georgia]
+
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=-54&lon=-32&skins=3 South Georgia]
 
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=-34&lon=-58&skins=2 Buenos Aires]
 
:[http://nbest.co.uk/kmlGeohash/index.php?date=2008-05-21&lat=-34&lon=-58&skins=2 Buenos Aires]
 
:[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=-84&skins=2 Atlanta]
Line 55: Line 55:
 
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=49&lon=8&skins=2 Mannheim]
 
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=49&lon=8&skins=2 Mannheim]
 
:[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=-33&lon=149&skins=2 Australia]
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=-50&lon=-32&skins=3 South Georgia]
+
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=-54&lon=-32&skins=3 South Georgia]
 
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=-34&lon=-58&skins=2 Buenos Aires]
 
:[http://nbest.co.uk/kmlGeohash/index.php?date=-1&lat=-34&lon=-58&skins=2 Buenos Aires]
 
:[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=-84&skins=2 Atlanta]
Line 70: Line 70:
 
:[http://nbest.co.uk/kmlGeohash/index.php?lat=49&lon=8&skins=2 Mannheim]
 
:[http://nbest.co.uk/kmlGeohash/index.php?lat=49&lon=8&skins=2 Mannheim]
 
:[http://nbest.co.uk/kmlGeohash/index.php?lat=-33&lon=149&skins=2 Australia]
 
:[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 South Georgia]
+
:[http://nbest.co.uk/kmlGeohash/index.php?lat=-54&lon=-32&skins=3 South Georgia]
 
:[http://nbest.co.uk/kmlGeohash/index.php?lat=-34&lon=-58&skins=2 Buenos Aires]
 
:[http://nbest.co.uk/kmlGeohash/index.php?lat=-34&lon=-58&skins=2 Buenos Aires]
 
:[http://nbest.co.uk/kmlGeohash/index.php?lat=33&lon=-84&skins=2 Atlanta]
 
:[http://nbest.co.uk/kmlGeohash/index.php?lat=33&lon=-84&skins=2 Atlanta]
Line 85: Line 85:
 
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=49&lon=8&skins=2 Mannheim]
 
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=49&lon=8&skins=2 Mannheim]
 
:[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=-33&lon=149&skins=2 Australia]
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=-50&lon=-32&skins=3 South Georgia]
+
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=-54&lon=-32&skins=3 South Georgia]
 
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=-34&lon=-58&skins=2 Buenos Aires]
 
:[http://nbest.co.uk/kmlGeohash/index.php?date=1&lat=-34&lon=-58&skins=2 Buenos Aires]
 
:[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=-84&skins=2 Atlanta]

Revision as of 23:08, 28 January 2016

This implementation IS FULLY 30W-compliant.

Please double check the output - it's been tested but ...


This calculator creates a KML file.

If you install Google Earth or other applications such as Marble that understand this file format, 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.

Bugs and feature requests

Please put bug reports and feature requests on the discussion tab.

  • Google earth street view is very useful if your country allows this.
  • UK geohashers will like the Bing Map (UK OS) link. This shows the hashpoint and rights of way for access.

Tests

2008-05-21
Grenwich
Mannheim
Australia
South Georgia
Buenos Aires
Atlanta
89,0
89,-30
-89,0
0,0
0,-30
0,179
0,-179
Yesterday
Grenwich
Mannheim
Australia
South Georgia
Buenos Aires
Atlanta
89,0
89,-30
-89,0
0,0
0,-30
0,179
0,-179
Today
Grenwich
Mannheim
Australia
South Georgia
Buenos Aires
Atlanta
89,0
89,-30
-89,0
0,0
0,-30
0,179
0,-179
Tomorrow
Grenwich
Mannheim
Australia
South Georgia
Buenos Aires
Atlanta
89,0
89,-30
-89,0
0,0
0,-30
0,179
0,-179

Source Code and Documentation