-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Refactor OS Grid and Reproject to use common test data.
- Loading branch information
1 parent
ba4d8ab
commit 18e3184
Showing
3 changed files
with
72 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package geocode | ||
|
||
import ( | ||
"github.com/paulmach/orb" | ||
) | ||
|
||
type testPlace struct { | ||
easting int | ||
northing int | ||
name string | ||
osgr string | ||
lonLat orb.Point | ||
} | ||
|
||
func getTestPlaces() []testPlace { | ||
return []testPlace{ | ||
{485_771, 92_079, "Selsey Bill", "SZ8577192079", orb.Point{-0.78628983, 50.722016}}, | ||
{480_479, 96_317, "Bracklesham Bay", "SZ8047996317", orb.Point{-0.86031823, 50.760875}}, | ||
{529_740, 180_773, "Wardour St, London", "TQ2974080773", orb.Point{-0.13181379, 51.510997}}, | ||
{496_685, 177_398, "Eton Guns, Eton", "SU9668577398", orb.Point{-0.60888972, 51.487277}}, | ||
{502_925, 160_554, "Sheerwater, Woking", "TQ0292560554", orb.Point{-0.52393303, 51.334773}}, | ||
{528_132, 184_415, "Chalk Farm Tube Station", "TQ2813284415", orb.Point{-0.15364227, 51.544097}}, | ||
{147_092, 30_263, "Penzance", "SW4709230263", orb.Point{-5.5392674101162, 50.1184449113554}}, | ||
{224_726, 382_330, "Holyhead", "SH2472682330", orb.Point{-4.6321875, 53.308828}}, | ||
{150_552, 755_297, "Tobermory", "NM5055255297", orb.Point{-6.06809695014501, 56.622901648826}}, | ||
{175_405, 225_295, "St Davids", "SM7540525295", orb.Point{-5.26464006525205, 51.8808734514259}}, | ||
{176_346, 827_263, "Kyle of Lochalsh", "NG7634627263", orb.Point{-5.71229896759099, 57.2810797079495}}, | ||
{182_648, 44_827, "Truro", "SW8264844827", orb.Point{-5.05101265950598, 50.2633300534275}}, | ||
{218_570, 597_931, "Girvan", "NX1857097931", orb.Point{-4.85531770044002, 55.2421123945225}}, | ||
{266_617, 845_493, "Inverness", "NH6661745493", orb.Point{-4.22622129478818, 57.4799977149705}}, | ||
{268_577, 551_148, "Kirkcudbright", "NX6857751148", orb.Point{-4.04786239360251, 54.8378524191877}}, | ||
{293_994, 758_112, "Pitlochry", "NN9399458112", orb.Point{-3.73289806042956, 56.7026446631663}}, | ||
{303_277, 827_846, "Grantown-on-Spey", "NJ0327727846", orb.Point{-3.60817223914678, 57.3308520860594}}, | ||
{311_687, 968_450, "Thurso", "ND1168768450", orb.Point{-3.52110010140828, 58.5950124669737}}, | ||
{317_814, 745_296, "Blairgowrie and Rattray", "NO1781445296", orb.Point{-3.33991695114065, 56.5923527415861}}, | ||
{330_873, 436_578, "Blackpool", "SD3087336578", orb.Point{-3.05154404779973, 53.8208602230914}}, | ||
{350_897, 239_976, "Hereford", "SO5089739976", orb.Point{-2.71754978850477, 52.0559792724345}}, | ||
{390_129, 426_184, "Portsmouth", "SD9012926184", orb.Point{-2.15110286235426, 53.7319540311404}}, | ||
{394_426, 806_556, "Aberdeen", "NJ9442606556", orb.Point{-2.09375976250924, 57.1498507970959}}, | ||
{402_281, 202_031, "Cirencester", "SP0228102031", orb.Point{-1.96837565467488, 51.7170067510382}}, | ||
{419_799, 585_952, "Morpeth", "NZ1979985952", orb.Point{-1.69074152555053, 55.1674893825777}}, | ||
{424_572, 403_285, "Penistone", "SE2457203285", orb.Point{-1.63081305258923, 53.5256667596675}}, | ||
{435_749, 316_723, "Ashby-de-la-Zouch", "SK3574916723", orb.Point{-1.47184910059996, 52.7469578946588}}, | ||
{447_467, 1_141_434, "Lerwick", "HU4746741434", orb.Point{-1.14681809802032, 60.1546418281584}}, | ||
{460_218, 452_158, "York", "SE6021852158", orb.Point{-1.0836748355092, 53.9620087173741}}, | ||
{519_204, 298_638, "Peterborough", "TL1920498638", orb.Point{-0.242497599724569, 52.5725093308881}}, | ||
{567_377, 194_515, "Billericay", "TQ6737794515", orb.Point{0.416622675810784, 51.6245616474664}}, | ||
{579_941, 183_634, "Canvey Island", "TQ7994183634", orb.Point{0.592366890161814, 51.5229534756215}}, | ||
{622_977, 308_549, "Norwich", "TG2297708549", orb.Point{1.29330728438099, 52.6288686480942}}, | ||
{631_587, 141_745, "Dover", "TR3158741745", orb.Point{1.30842698233744, 51.1281377122637}}, | ||
{654_779, 293_216, "Lowestoft", "TM5477993216", orb.Point{1.75043311819206, 52.4773484258696}}, | ||
} | ||
} |