Skip to content

Instantly share code, notes, and snippets.

@matt-in-a-hat
Created September 9, 2020 04:50
Show Gist options
  • Save matt-in-a-hat/cf8f397a1ce622e87025ae863aa4c051 to your computer and use it in GitHub Desktop.
Save matt-in-a-hat/cf8f397a1ce622e87025ae863aa4c051 to your computer and use it in GitHub Desktop.
NZTA detour API example
[
{
"activeTrafficManagement": null,
"activeTrafficManagementFlag": "Unknown",
"detourName": "State Highway 39!",
"startLocation": "Te Tahi Road",
"endLocation": "State Highway 39",
"journeyTime": 14.44,
"journeyLength": 8.65,
"extraJourneyTime": "0-10 mins",
"extraJourneyLength": 12,
"planNumber": null,
"nocArea": "West Waikato North",
"comments": null,
"detourPart": 1,
"detourNumber": "WWKON-00001",
"srcRefLink": null,
"noOfOneLaneBridges": null,
"noOfOneLaneBridgesFlag": "Unknown",
"heightRestriction": null,
"heightRestrictionFlag": "Unknown",
"weightRestriction": null,
"weightRestrictionFlag": "Unknown",
"lengthRestriction": null,
"lengthRestrictionFlag": "Unknown",
"timeOfDay": null,
"timeOfDayFlag": "Unknown",
"surfaceType": "Sealed",
"weatherRestriction": null,
"weatherRestrictionFlag": "Unknown",
"oneWayFlow": null,
"oneWayFlowFlag": "Unknown",
"speedRecommendation": null,
"speedRecommendationFlag": "Unknown",
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
},
"type": "LineString",
"coordinates": [
[
175.16198,
-38.03868
],
[
175.16208,
-38.03864
],
[
175.16225,
-38.03852
],
[
175.16258,
-38.03792
],
[
175.16287,
-38.03763
],
[
175.16341,
-38.03735
],
[
175.16365,
-38.03722
],
[
175.16374,
-38.0371
],
[
175.16383,
-38.03697
],
[
175.16417,
-38.03683
],
[
175.1651,
-38.03665
],
[
175.16522,
-38.03664
],
[
175.16538,
-38.03663
],
[
175.16569,
-38.03671
],
[
175.1661,
-38.03684
],
[
175.16674,
-38.03678
],
[
175.16699,
-38.0369
],
[
175.16726,
-38.03699
],
[
175.16754,
-38.03698
],
[
175.16794,
-38.03697
],
[
175.16823,
-38.037
],
[
175.16836,
-38.03703
],
[
175.16867,
-38.03709
],
[
175.16914,
-38.03712
],
[
175.16978,
-38.03704
],
[
175.17009,
-38.03705
],
[
175.1705,
-38.03704
],
[
175.17102,
-38.03707
],
[
175.17268,
-38.03739
],
[
175.17332,
-38.03765
],
[
175.17356,
-38.03771
],
[
175.17368,
-38.03777
],
[
175.17389,
-38.03792
],
[
175.17421,
-38.03817
],
[
175.1746,
-38.03823
],
[
175.17505,
-38.03827
],
[
175.17547,
-38.03829
],
[
175.17572,
-38.0383
],
[
175.17619,
-38.03825
],
[
175.17632,
-38.03819
],
[
175.1764,
-38.03809
],
[
175.17688,
-38.0379
],
[
175.17701,
-38.03788
],
[
175.17725,
-38.03793
],
[
175.1776,
-38.038
],
[
175.17777,
-38.03808
],
[
175.17825,
-38.03799
],
[
175.17837,
-38.03796
],
[
175.17867,
-38.03801
],
[
175.17946,
-38.0382
],
[
175.17982,
-38.03842
],
[
175.18004,
-38.03859
],
[
175.18009,
-38.03874
],
[
175.18015,
-38.03891
],
[
175.1802,
-38.03904
],
[
175.18035,
-38.03914
],
[
175.1806,
-38.0392
],
[
175.18108,
-38.03946
],
[
175.18108,
-38.03946
],
[
175.18077,
-38.0397
],
[
175.18047,
-38.04004
],
[
175.17949,
-38.04133
],
[
175.17893,
-38.04248
],
[
175.17864,
-38.04302
],
[
175.17828,
-38.04346
],
[
175.17801,
-38.04364
],
[
175.17769,
-38.04372
],
[
175.17494,
-38.04379
],
[
175.17469,
-38.04383
],
[
175.17469,
-38.04383
],
[
175.17474,
-38.04431
],
[
175.17481,
-38.04489
],
[
175.17495,
-38.04513
],
[
175.1756,
-38.04587
],
[
175.17569,
-38.04617
],
[
175.1757,
-38.04643
],
[
175.17567,
-38.04668
],
[
175.17554,
-38.04734
],
[
175.1757,
-38.04901
],
[
175.17597,
-38.04983
],
[
175.17616,
-38.05011
],
[
175.17722,
-38.0507
],
[
175.17805,
-38.05099
],
[
175.17857,
-38.05111
],
[
175.17918,
-38.05112
],
[
175.17918,
-38.05112
],
[
175.17857,
-38.05111
],
[
175.17805,
-38.05099
],
[
175.17722,
-38.0507
],
[
175.17616,
-38.05011
],
[
175.17597,
-38.04983
],
[
175.1757,
-38.04901
],
[
175.17554,
-38.04734
],
[
175.17567,
-38.04668
],
[
175.1757,
-38.04643
],
[
175.17569,
-38.04617
],
[
175.1756,
-38.04587
],
[
175.17495,
-38.04513
],
[
175.17481,
-38.04489
],
[
175.17474,
-38.04431
],
[
175.17469,
-38.04383
],
[
175.17469,
-38.04383
],
[
175.17494,
-38.04379
],
[
175.17769,
-38.04372
],
[
175.17801,
-38.04364
],
[
175.17828,
-38.04346
],
[
175.17828,
-38.04346
],
[
175.17828,
-38.04346
],
[
175.17864,
-38.04302
],
[
175.17893,
-38.04248
],
[
175.17949,
-38.04133
],
[
175.18047,
-38.04004
],
[
175.18077,
-38.0397
],
[
175.18108,
-38.03946
],
[
175.18142,
-38.0393
],
[
175.18276,
-38.03882
],
[
175.18371,
-38.0383
],
[
175.18513,
-38.0373
],
[
175.18567,
-38.03705
],
[
175.18674,
-38.03655
],
[
175.18717,
-38.03621
],
[
175.18747,
-38.03592
],
[
175.18764,
-38.03568
],
[
175.1879,
-38.03517
],
[
175.18924,
-38.03259
],
[
175.19025,
-38.03085
],
[
175.19029,
-38.03077
],
[
175.19056,
-38.03034
],
[
175.19085,
-38.02984
],
[
175.19145,
-38.02881
],
[
175.19205,
-38.0278
],
[
175.19234,
-38.02728
],
[
175.19249,
-38.02702
],
[
175.19257,
-38.02689
],
[
175.19265,
-38.02676
],
[
175.19304,
-38.02609
],
[
175.19344,
-38.02542
],
[
175.19373,
-38.02492
],
[
175.19458,
-38.02348
],
[
175.195,
-38.02278
],
[
175.19546,
-38.0221
],
[
175.19649,
-38.02056
],
[
175.19699,
-38.01981
],
[
175.19726,
-38.01942
],
[
175.19753,
-38.01902
],
[
175.19784,
-38.0184
],
[
175.19824,
-38.01755
],
[
175.19845,
-38.01715
],
[
175.19858,
-38.0169
],
[
175.19858,
-38.0169
]
]
},
"geojsonNztaProvider": null,
"waypoints": [
{
"lat": -38.038678,
"lng": 175.161975
},
{
"lat": -38.0441706770495,
"lng": 175.17957687377933
},
{
"lat": -38.016904,
"lng": 175.198579
}
],
"isPublished": false,
"noOfficialDetour": false,
"stateHighway": null,
"id": 24603
},
{
"activeTrafficManagement": null,
"activeTrafficManagementFlag": "Unknown",
"detourName": "Western Hutt Road",
"startLocation": "Western Hutt Road",
"endLocation": "Western Hutt Road",
"journeyTime": 44.2,
"journeyLength": 980,
"extraJourneyTime": null,
"extraJourneyLength": null,
"planNumber": null,
"nocArea": "Wellington",
"comments": null,
"detourPart": 0,
"detourNumber": "WGN-00003",
"srcRefLink": null,
"noOfOneLaneBridges": null,
"noOfOneLaneBridgesFlag": "Unknown",
"heightRestriction": null,
"heightRestrictionFlag": "Unknown",
"weightRestriction": null,
"weightRestrictionFlag": "Unknown",
"lengthRestriction": null,
"lengthRestrictionFlag": "Unknown",
"timeOfDay": null,
"timeOfDayFlag": "Unknown",
"surfaceType": null,
"weatherRestriction": null,
"weatherRestrictionFlag": "Unknown",
"oneWayFlow": null,
"oneWayFlowFlag": "Unknown",
"speedRecommendation": null,
"speedRecommendationFlag": "Unknown",
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
},
"type": "LineString",
"coordinates": [
[
174.8725,
-41.22019
],
[
174.87392,
-41.21957
],
[
174.87452,
-41.21932
],
[
174.87536,
-41.219
],
[
174.8757,
-41.21888
],
[
174.87608,
-41.21874
],
[
174.87683,
-41.21846
],
[
174.87771,
-41.21814
],
[
174.87862,
-41.21778
],
[
174.8791,
-41.21757
],
[
174.87957,
-41.21735
],
[
174.87985,
-41.21725
],
[
174.88031,
-41.21702
],
[
174.88072,
-41.21683
],
[
174.88121,
-41.21659
],
[
174.88164,
-41.21639
],
[
174.88206,
-41.2162
],
[
174.88272,
-41.21591
],
[
174.88272,
-41.21591
]
]
},
"geojsonNztaProvider": null,
"waypoints": [
{
"lat": -41.22017946634757,
"lng": 174.87249348906352
},
{
"lat": -41.215918342871035,
"lng": 174.88273386885015
}
],
"isPublished": false,
"noOfficialDetour": false,
"stateHighway": null,
"id": 2964
},
{
"activeTrafficManagement": null,
"activeTrafficManagementFlag": "Unknown",
"detourName": "Warspite Avenue",
"startLocation": "Warspite Avenue",
"endLocation": "Warspite Avenue",
"journeyTime": 55.8,
"journeyLength": 619.3,
"extraJourneyTime": null,
"extraJourneyLength": null,
"planNumber": null,
"nocArea": "Wellington",
"comments": null,
"detourPart": 0,
"detourNumber": "WGN-00002",
"srcRefLink": null,
"noOfOneLaneBridges": null,
"noOfOneLaneBridgesFlag": "Unknown",
"heightRestriction": null,
"heightRestrictionFlag": "Unknown",
"weightRestriction": null,
"weightRestrictionFlag": "Unknown",
"lengthRestriction": null,
"lengthRestrictionFlag": "Unknown",
"timeOfDay": null,
"timeOfDayFlag": "Unknown",
"surfaceType": null,
"weatherRestriction": null,
"weatherRestrictionFlag": "Unknown",
"oneWayFlow": null,
"oneWayFlowFlag": "Unknown",
"speedRecommendation": null,
"speedRecommendationFlag": "Unknown",
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
},
"type": "LineString",
"coordinates": [
[
174.87571,
-41.13579
],
[
174.87529,
-41.13589
],
[
174.87483,
-41.13603
],
[
174.87473,
-41.13607
],
[
174.87434,
-41.13625
],
[
174.87275,
-41.13697
],
[
174.87224,
-41.13722
],
[
174.87144,
-41.1376
],
[
174.87133,
-41.13766
],
[
174.87078,
-41.13796
],
[
174.87059,
-41.1381
],
[
174.87036,
-41.13827
],
[
174.86995,
-41.13867
],
[
174.86972,
-41.13892
],
[
174.86972,
-41.13892
]
]
},
"geojsonNztaProvider": null,
"waypoints": [
{
"lat": -41.13571230998604,
"lng": 174.8756718635559
},
{
"lat": -41.1388797740206,
"lng": 174.86964225769046
}
],
"isPublished": true,
"noOfficialDetour": false,
"stateHighway": null,
"id": 19
},
{
"activeTrafficManagement": null,
"activeTrafficManagementFlag": "Unknown",
"detourName": "Warspite Avenue",
"startLocation": "Warspite Avenue",
"endLocation": "Warspite Avenue",
"journeyTime": 154.6,
"journeyLength": 1676.9,
"extraJourneyTime": "90-150 mins",
"extraJourneyLength": 1057.6,
"planNumber": null,
"nocArea": "Wellington",
"comments": null,
"detourPart": 1,
"detourNumber": "WGN-00002",
"srcRefLink": null,
"noOfOneLaneBridges": null,
"noOfOneLaneBridgesFlag": "Unknown",
"heightRestriction": null,
"heightRestrictionFlag": "Unknown",
"weightRestriction": null,
"weightRestrictionFlag": "Unknown",
"lengthRestriction": null,
"lengthRestrictionFlag": "Unknown",
"timeOfDay": null,
"timeOfDayFlag": "Unknown",
"surfaceType": "Sealed",
"weatherRestriction": null,
"weatherRestrictionFlag": "Unknown",
"oneWayFlow": null,
"oneWayFlowFlag": "Unknown",
"speedRecommendation": null,
"speedRecommendationFlag": "Unknown",
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
},
"type": "LineString",
"coordinates": [
[
174.87571,
-41.13579
],
[
174.8758,
-41.13577
],
[
174.87634,
-41.13565
],
[
174.87634,
-41.13565
],
[
174.87658,
-41.13647
],
[
174.87723,
-41.13883
],
[
174.87726,
-41.13925
],
[
174.8772,
-41.13958
],
[
174.87704,
-41.13989
],
[
174.87682,
-41.14015
],
[
174.87673,
-41.14026
],
[
174.8765,
-41.14046
],
[
174.87621,
-41.14064
],
[
174.87601,
-41.14073
],
[
174.87585,
-41.14078
],
[
174.87569,
-41.14082
],
[
174.87569,
-41.14082
],
[
174.87569,
-41.14082
],
[
174.87547,
-41.14087
],
[
174.87504,
-41.14091
],
[
174.87405,
-41.14099
],
[
174.87395,
-41.141
],
[
174.87253,
-41.14114
],
[
174.87219,
-41.14118
],
[
174.87168,
-41.14126
],
[
174.87134,
-41.14131
],
[
174.8711,
-41.14136
],
[
174.87048,
-41.14159
],
[
174.86968,
-41.1419
],
[
174.86948,
-41.14191
],
[
174.86928,
-41.1419
],
[
174.8691,
-41.14185
],
[
174.86891,
-41.14173
],
[
174.86857,
-41.14135
],
[
174.86796,
-41.14062
],
[
174.86796,
-41.14062
],
[
174.86842,
-41.14033
],
[
174.86882,
-41.13994
],
[
174.86943,
-41.13925
],
[
174.86965,
-41.13899
],
[
174.86972,
-41.13892
],
[
174.86972,
-41.13892
]
]
},
"geojsonNztaProvider": null,
"waypoints": [
{
"lat": -41.13579,
"lng": 174.875705
},
{
"lat": -41.140770483218205,
"lng": 174.8756718635559
},
{
"lat": -41.138919,
"lng": 174.869716
}
],
"isPublished": true,
"noOfficialDetour": false,
"stateHighway": null,
"id": 20
},
{
"activeTrafficManagement": null,
"activeTrafficManagementFlag": "Unknown",
"detourName": "Warspite Avenue",
"startLocation": "Warspite Avenue",
"endLocation": "Warspite Avenue",
"journeyTime": 151.7,
"journeyLength": 1574.8,
"extraJourneyTime": "90-150 mins",
"extraJourneyLength": 955.5,
"planNumber": null,
"nocArea": "Wellington",
"comments": null,
"detourPart": 2,
"detourNumber": "WGN-00002",
"srcRefLink": null,
"noOfOneLaneBridges": null,
"noOfOneLaneBridgesFlag": "Unknown",
"heightRestriction": null,
"heightRestrictionFlag": "Unknown",
"weightRestriction": null,
"weightRestrictionFlag": "Unknown",
"lengthRestriction": null,
"lengthRestrictionFlag": "Unknown",
"timeOfDay": null,
"timeOfDayFlag": "Unknown",
"surfaceType": "Sealed",
"weatherRestriction": null,
"weatherRestrictionFlag": "Unknown",
"oneWayFlow": null,
"oneWayFlowFlag": "Unknown",
"speedRecommendation": null,
"speedRecommendationFlag": "Unknown",
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
},
"type": "LineString",
"coordinates": [
[
174.87571,
-41.13579
],
[
174.8758,
-41.13577
],
[
174.8758,
-41.13577
],
[
174.87554,
-41.13476
],
[
174.8755,
-41.13457
],
[
174.87538,
-41.13391
],
[
174.87534,
-41.13365
],
[
174.87526,
-41.1334
],
[
174.87511,
-41.1332
],
[
174.87494,
-41.13301
],
[
174.87467,
-41.13281
],
[
174.87428,
-41.13265
],
[
174.87274,
-41.13217
],
[
174.87264,
-41.13212
],
[
174.87244,
-41.13207
],
[
174.87213,
-41.13204
],
[
174.87191,
-41.13206
],
[
174.87173,
-41.1321
],
[
174.87153,
-41.13217
],
[
174.87131,
-41.13226
],
[
174.87111,
-41.13238
],
[
174.87111,
-41.13238
],
[
174.87111,
-41.13238
],
[
174.87048,
-41.13272
],
[
174.86972,
-41.13315
],
[
174.8695,
-41.13335
],
[
174.86932,
-41.13367
],
[
174.86923,
-41.13381
],
[
174.86902,
-41.13416
],
[
174.86885,
-41.13445
],
[
174.86858,
-41.13491
],
[
174.86806,
-41.13581
],
[
174.86793,
-41.13603
],
[
174.8678,
-41.13627
],
[
174.86776,
-41.13637
],
[
174.86774,
-41.13646
],
[
174.86774,
-41.13656
],
[
174.86776,
-41.13665
],
[
174.86797,
-41.13702
],
[
174.86856,
-41.13795
],
[
174.86868,
-41.13814
],
[
174.8689,
-41.13848
],
[
174.86898,
-41.13858
],
[
174.86909,
-41.13867
],
[
174.86965,
-41.13899
],
[
174.86965,
-41.13899
],
[
174.86972,
-41.13892
],
[
174.86972,
-41.13892
]
]
},
"geojsonNztaProvider": null,
"waypoints": [
{
"lat": -41.13579,
"lng": 174.875705
},
{
"lat": -41.132332507192125,
"lng": 174.8710648342967
},
{
"lat": -41.138919,
"lng": 174.869716
}
],
"isPublished": false,
"noOfficialDetour": false,
"stateHighway": null,
"id": 21
},
{
"activeTrafficManagement": null,
"activeTrafficManagementFlag": "Unknown",
"detourName": "Kapiti Expressway, Kapiti Expressway",
"startLocation": "Kapiti Expressway",
"endLocation": "Kapiti Expressway",
"journeyTime": 0.53,
"journeyLength": 0.71,
"extraJourneyTime": "0-10 mins",
"extraJourneyLength": -9.05,
"planNumber": null,
"nocArea": "Wellington",
"comments": null,
"detourPart": 0,
"detourNumber": "WGN-00001",
"srcRefLink": null,
"noOfOneLaneBridges": null,
"noOfOneLaneBridgesFlag": "Unknown",
"heightRestriction": null,
"heightRestrictionFlag": "Unknown",
"weightRestriction": null,
"weightRestrictionFlag": "Unknown",
"lengthRestriction": null,
"lengthRestrictionFlag": "Unknown",
"timeOfDay": null,
"timeOfDayFlag": "Unknown",
"surfaceType": null,
"weatherRestriction": null,
"weatherRestrictionFlag": "Unknown",
"oneWayFlow": null,
"oneWayFlowFlag": "Unknown",
"speedRecommendation": null,
"speedRecommendationFlag": "Unknown",
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
},
"type": "LineString",
"coordinates": [
[
175.04456,
-40.86421
],
[
175.0448,
-40.86404
],
[
175.04533,
-40.8636
],
[
175.04584,
-40.86312
],
[
175.04656,
-40.86236
],
[
175.04725,
-40.86164
],
[
175.04756,
-40.86133
],
[
175.04784,
-40.86109
],
[
175.0481,
-40.86088
],
[
175.04845,
-40.86062
],
[
175.04874,
-40.86042
],
[
175.0491,
-40.8602
],
[
175.04947,
-40.86
],
[
175.04998,
-40.85975
],
[
175.05027,
-40.85962
],
[
175.05027,
-40.85962
]
]
},
"geojsonNztaProvider": null,
"waypoints": [
{
"lat": -40.864206,
"lng": 175.044557
},
{
"lat": -40.8596345829632,
"lng": 175.05028367042544
}
],
"isPublished": true,
"noOfficialDetour": false,
"stateHighway": null,
"id": 24585
},
{
"activeTrafficManagement": null,
"activeTrafficManagementFlag": "Unknown",
"detourName": "Kapiti Expressway, Kapiti Expressway",
"startLocation": "Kapiti Expressway",
"endLocation": "Kapiti Expressway",
"journeyTime": 2.14,
"journeyLength": 2.28,
"extraJourneyTime": "0-10 mins",
"extraJourneyLength": 1.57,
"planNumber": null,
"nocArea": "Wellington",
"comments": null,
"detourPart": 1,
"detourNumber": "WGN-00001",
"srcRefLink": null,
"noOfOneLaneBridges": null,
"noOfOneLaneBridgesFlag": "Unknown",
"heightRestriction": null,
"heightRestrictionFlag": "Unknown",
"weightRestriction": null,
"weightRestrictionFlag": "Unknown",
"lengthRestriction": null,
"lengthRestrictionFlag": "Unknown",
"timeOfDay": null,
"timeOfDayFlag": "Unknown",
"surfaceType": "Sealed",
"weatherRestriction": null,
"weatherRestrictionFlag": "Unknown",
"oneWayFlow": null,
"oneWayFlowFlag": "Unknown",
"speedRecommendation": null,
"speedRecommendationFlag": "Unknown",
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
},
"type": "LineString",
"coordinates": [
[
175.03037,
-40.87247
],
[
175.03074,
-40.87202
],
[
175.03074,
-40.87202
],
[
175.03107,
-40.87149
],
[
175.03133,
-40.87112
],
[
175.0317,
-40.87067
],
[
175.03204,
-40.87026
],
[
175.03221,
-40.87008
],
[
175.03221,
-40.87008
],
[
175.03221,
-40.87008
],
[
175.03244,
-40.86983
],
[
175.03278,
-40.86949
],
[
175.03312,
-40.86915
],
[
175.03352,
-40.86877
],
[
175.03381,
-40.8685
],
[
175.03424,
-40.86811
],
[
175.03424,
-40.86811
],
[
175.03432,
-40.86805
],
[
175.03456,
-40.86786
],
[
175.03485,
-40.86765
],
[
175.03518,
-40.86744
],
[
175.03543,
-40.86731
],
[
175.03572,
-40.86718
],
[
175.03606,
-40.86705
],
[
175.03636,
-40.86696
],
[
175.03667,
-40.86688
],
[
175.03699,
-40.86682
],
[
175.03736,
-40.86677
],
[
175.03785,
-40.8667
],
[
175.03829,
-40.86662
],
[
175.03872,
-40.86654
],
[
175.0393,
-40.8664
],
[
175.04031,
-40.86618
],
[
175.04031,
-40.86618
],
[
175.04079,
-40.86604
],
[
175.04184,
-40.86569
],
[
175.04278,
-40.86527
],
[
175.04343,
-40.86493
],
[
175.04412,
-40.86452
],
[
175.0448,
-40.86404
],
[
175.04533,
-40.8636
],
[
175.04584,
-40.86312
],
[
175.04656,
-40.86236
],
[
175.04725,
-40.86164
],
[
175.04756,
-40.86133
],
[
175.04784,
-40.86109
],
[
175.0481,
-40.86088
],
[
175.04845,
-40.86062
],
[
175.04874,
-40.86042
],
[
175.0491,
-40.8602
],
[
175.04947,
-40.86
],
[
175.04998,
-40.85975
],
[
175.05027,
-40.85962
],
[
175.05027,
-40.85962
]
]
},
"geojsonNztaProvider": null,
"waypoints": [
{
"lat": -40.872467,
"lng": 175.030372
},
{
"lat": -40.870058277824114,
"lng": 175.0321705034003
},
{
"lat": -40.859618,
"lng": 175.050271
}
],
"isPublished": false,
"noOfficialDetour": false,
"stateHighway": null,
"id": 24586
},
{
"activeTrafficManagement": null,
"activeTrafficManagementFlag": "Unknown",
"detourName": "Fergusson Drive",
"startLocation": "Fergusson Drive",
"endLocation": "Fergusson Drive",
"journeyTime": 354.9,
"journeyLength": 4620.6,
"extraJourneyTime": ">150 mins",
"extraJourneyLength": 2372.4,
"planNumber": null,
"nocArea": "Wellington",
"comments": "Longer Detour",
"detourPart": 2,
"detourNumber": "WGN-00001",
"srcRefLink": null,
"noOfOneLaneBridges": null,
"noOfOneLaneBridgesFlag": "Unknown",
"heightRestriction": null,
"heightRestrictionFlag": "Unknown",
"weightRestriction": null,
"weightRestrictionFlag": "Unknown",
"lengthRestriction": null,
"lengthRestrictionFlag": "Unknown",
"timeOfDay": null,
"timeOfDayFlag": "Unknown",
"surfaceType": "Sealed",
"weatherRestriction": null,
"weatherRestrictionFlag": "Unknown",
"oneWayFlow": null,
"oneWayFlowFlag": "Unknown",
"speedRecommendation": null,
"speedRecommendationFlag": "Unknown",
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
},
"type": "LineString",
"coordinates": [
[
175.05295,
-41.12629
],
[
175.05297,
-41.12629
],
[
175.05305,
-41.12626
],
[
175.05312,
-41.12626
],
[
175.05312,
-41.12626
],
[
175.05313,
-41.12623
],
[
175.05314,
-41.12621
],
[
175.05318,
-41.12619
],
[
175.05321,
-41.12619
],
[
175.05325,
-41.12619
],
[
175.05328,
-41.1262
],
[
175.05329,
-41.12622
],
[
175.05331,
-41.12624
],
[
175.05331,
-41.12626
],
[
175.0533,
-41.12628
],
[
175.05329,
-41.1263
],
[
175.05326,
-41.12632
],
[
175.05323,
-41.12633
],
[
175.05328,
-41.1264
],
[
175.05334,
-41.12648
],
[
175.05347,
-41.12663
],
[
175.05405,
-41.12726
],
[
175.05485,
-41.12815
],
[
175.05571,
-41.12911
],
[
175.05597,
-41.1294
],
[
175.05627,
-41.12976
],
[
175.05708,
-41.13066
],
[
175.05736,
-41.13099
],
[
175.05739,
-41.13102
],
[
175.05744,
-41.13107
],
[
175.05766,
-41.13133
],
[
175.05801,
-41.13172
],
[
175.05841,
-41.13217
],
[
175.05895,
-41.13277
],
[
175.05923,
-41.1331
],
[
175.0594,
-41.1333
],
[
175.05946,
-41.13337
],
[
175.05946,
-41.13337
],
[
175.0595,
-41.13337
],
[
175.05953,
-41.13337
],
[
175.05956,
-41.13339
],
[
175.05959,
-41.13341
],
[
175.0596,
-41.13344
],
[
175.0596,
-41.13347
],
[
175.05959,
-41.1335
],
[
175.05958,
-41.13351
],
[
175.05954,
-41.13353
],
[
175.05952,
-41.13353
],
[
175.05948,
-41.13354
],
[
175.05943,
-41.13352
],
[
175.0594,
-41.1335
],
[
175.05934,
-41.13355
],
[
175.05929,
-41.13357
],
[
175.0591,
-41.13366
],
[
175.05894,
-41.13373
],
[
175.05882,
-41.1338
],
[
175.05873,
-41.13386
],
[
175.05862,
-41.13397
],
[
175.05848,
-41.13415
],
[
175.05825,
-41.13448
],
[
175.05807,
-41.13471
],
[
175.05802,
-41.13477
],
[
175.05802,
-41.13477
],
[
175.05802,
-41.13477
],
[
175.05792,
-41.13488
],
[
175.05753,
-41.13526
],
[
175.05573,
-41.13683
],
[
175.05543,
-41.13756
],
[
175.05529,
-41.13781
],
[
175.05496,
-41.13841
],
[
175.05465,
-41.13862
],
[
175.0545,
-41.13873
],
[
175.05347,
-41.13926
],
[
175.05042,
-41.14085
],
[
175.04906,
-41.14155
],
[
175.04707,
-41.1425
],
[
175.04617,
-41.14296
],
[
175.04605,
-41.14304
],
[
175.04596,
-41.1431
],
[
175.04589,
-41.14318
],
[
175.04589,
-41.14318
],
[
175.04592,
-41.14321
],
[
175.04593,
-41.14326
],
[
175.04593,
-41.1433
],
[
175.0459,
-41.14334
],
[
175.04585,
-41.14337
],
[
175.04579,
-41.14339
],
[
175.04574,
-41.14338
],
[
175.04568,
-41.14337
],
[
175.04564,
-41.14334
],
[
175.04557,
-41.14334
],
[
175.04543,
-41.14336
],
[
175.04525,
-41.14341
],
[
175.0451,
-41.14347
],
[
175.04397,
-41.14404
],
[
175.04303,
-41.1445
],
[
175.0419,
-41.14507
],
[
175.04095,
-41.14556
],
[
175.04082,
-41.14573
],
[
175.0406,
-41.14589
],
[
175.0406,
-41.14589
],
[
175.03955,
-41.14638
],
[
175.03903,
-41.14652
],
[
175.03819,
-41.14652
],
[
175.03757,
-41.14634
],
[
175.03719,
-41.14623
],
[
175.03679,
-41.14598
],
[
175.03667,
-41.14591
],
[
175.03563,
-41.14475
],
[
175.03509,
-41.14414
],
[
175.03491,
-41.14395
],
[
175.0349,
-41.14394
],
[
175.03475,
-41.14378
],
[
175.03446,
-41.14349
],
[
175.03415,
-41.14311
],
[
175.03403,
-41.14286
],
[
175.03379,
-41.14237
],
[
175.03338,
-41.14139
],
[
175.03311,
-41.14072
],
[
175.03282,
-41.1401
],
[
175.03273,
-41.13995
],
[
175.03271,
-41.13993
],
[
175.03271,
-41.13993
],
[
175.0327,
-41.13991
],
[
175.0326,
-41.13977
],
[
175.03205,
-41.13911
],
[
175.0319,
-41.13894
],
[
175.03165,
-41.13866
],
[
175.03075,
-41.13767
],
[
175.03075,
-41.13767
],
[
175.03087,
-41.13761
],
[
175.03087,
-41.13761
]
]
},
"geojsonNztaProvider": null,
"waypoints": [
{
"lat": -41.126292,
"lng": 175.052951
},
{
"lat": -41.13482509467584,
"lng": 175.05812359973788
},
{
"lat": -41.137612,
"lng": 175.030865
}
],
"isPublished": false,
"noOfficialDetour": false,
"stateHighway": null,
"id": 18
},
{
"activeTrafficManagement": null,
"activeTrafficManagementFlag": "Unknown",
"detourName": "Haast Pass Highway",
"startLocation": "Haast Pass Highway",
"endLocation": "Haast Pass Highway",
"journeyTime": 3.99,
"journeyLength": 5.32,
"extraJourneyTime": null,
"extraJourneyLength": null,
"planNumber": null,
"nocArea": "West Coast",
"comments": null,
"detourPart": 0,
"detourNumber": "WCT-00001",
"srcRefLink": null,
"noOfOneLaneBridges": null,
"noOfOneLaneBridgesFlag": "Unknown",
"heightRestriction": null,
"heightRestrictionFlag": "Unknown",
"weightRestriction": null,
"weightRestrictionFlag": "Unknown",
"lengthRestriction": null,
"lengthRestrictionFlag": "Unknown",
"timeOfDay": null,
"timeOfDayFlag": "Unknown",
"surfaceType": null,
"weatherRestriction": null,
"weatherRestrictionFlag": "Unknown",
"oneWayFlow": null,
"oneWayFlowFlag": "Unknown",
"speedRecommendation": null,
"speedRecommendationFlag": "Unknown",
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
},
"type": "LineString",
"coordinates": [
[
169.05438,
-43.89655
],
[
169.05507,
-43.89712
],
[
169.05577,
-43.89765
],
[
169.05994,
-43.90099
],
[
169.06188,
-43.90253
],
[
169.06247,
-43.903
],
[
169.06391,
-43.90419
],
[
169.06445,
-43.90461
],
[
169.06471,
-43.90486
],
[
169.06507,
-43.90518
],
[
169.06539,
-43.90552
],
[
169.06583,
-43.90605
],
[
169.06601,
-43.90627
],
[
169.06715,
-43.90767
],
[
169.06766,
-43.90837
],
[
169.06782,
-43.90861
],
[
169.06807,
-43.90916
],
[
169.06833,
-43.90975
],
[
169.06843,
-43.90995
],
[
169.06887,
-43.91046
],
[
169.06907,
-43.91064
],
[
169.0693,
-43.91081
],
[
169.06967,
-43.91103
],
[
169.07065,
-43.91157
],
[
169.07115,
-43.91185
],
[
169.07146,
-43.91201
],
[
169.07177,
-43.91221
],
[
169.07198,
-43.91238
],
[
169.07237,
-43.91266
],
[
169.07285,
-43.91309
],
[
169.07353,
-43.91374
],
[
169.07412,
-43.91429
],
[
169.07496,
-43.91494
],
[
169.07539,
-43.91531
],
[
169.07688,
-43.91646
],
[
169.07773,
-43.9171
],
[
169.0786,
-43.91778
],
[
169.07982,
-43.91871
],
[
169.08029,
-43.91908
],
[
169.08078,
-43.91946
],
[
169.08154,
-43.92002
],
[
169.08212,
-43.92041
],
[
169.08344,
-43.92128
],
[
169.0845,
-43.92203
],
[
169.08498,
-43.92238
],
[
169.08525,
-43.92262
],
[
169.08739,
-43.92435
],
[
169.08794,
-43.92476
],
[
169.08819,
-43.92493
],
[
169.08854,
-43.92507
],
[
169.08896,
-43.92522
],
[
169.08935,
-43.92537
],
[
169.0899,
-43.92556
],
[
169.09139,
-43.92614
],
[
169.0918,
-43.92624
],
[
169.09234,
-43.92629
],
[
169.09288,
-43.92628
],
[
169.0938,
-43.92626
],
[
169.09444,
-43.92624
],
[
169.09493,
-43.92623
],
[
169.09598,
-43.92616
],
[
169.0963,
-43.92615
],
[
169.0985,
-43.92607
],
[
169.10023,
-43.92603
],
[
169.10037,
-43.92603
],
[
169.10056,
-43.92604
],
[
169.10079,
-43.92608
],
[
169.10162,
-43.92626
],
[
169.10175,
-43.9263
],
[
169.10175,
-43.9263
]
]
},
"geojsonNztaProvider": null,
"waypoints": [
{
"lat": -43.896799418396796,
"lng": 169.0539760887623
},
{
"lat": -43.92649679082522,
"lng": 169.10162150859838
}
],
"isPublished": false,
"noOfficialDetour": false,
"stateHighway": null,
"id": 23651
},
{
"activeTrafficManagement": null,
"activeTrafficManagementFlag": "Unknown",
"detourName": "Bridge Street",
"startLocation": "Bridge Street",
"endLocation": "Bridge Street",
"journeyTime": 0.11,
"journeyLength": 0.12,
"extraJourneyTime": null,
"extraJourneyLength": null,
"planNumber": null,
"nocArea": "Southland",
"comments": null,
"detourPart": 0,
"detourNumber": "STL-00334",
"srcRefLink": null,
"noOfOneLaneBridges": null,
"noOfOneLaneBridgesFlag": "Unknown",
"heightRestriction": null,
"heightRestrictionFlag": "Unknown",
"weightRestriction": null,
"weightRestrictionFlag": "Unknown",
"lengthRestriction": null,
"lengthRestrictionFlag": "Unknown",
"timeOfDay": null,
"timeOfDayFlag": "Unknown",
"surfaceType": null,
"weatherRestriction": null,
"weatherRestrictionFlag": "Unknown",
"oneWayFlow": null,
"oneWayFlowFlag": "Unknown",
"speedRecommendation": null,
"speedRecommendationFlag": "Unknown",
"geojson": {
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
},
"type": "LineString",
"coordinates": [
[
168.86868,
-46.19483
],
[
168.86846,
-46.19478
],
[
168.86832,
-46.19475
],
[
168.86819,
-46.19472
],
[
168.86751,
-46.19455
],
[
168.86725,
-46.19451
],
[
168.86725,
-46.19451
]
]
},
"geojsonNztaProvider": null,
"waypoints": [
{
"lat": -46.194849017743145,
"lng": 168.8686662912369
},
{
"lat": -46.19452224695337,
"lng": 168.86725008487704
}
],
"isPublished": true,
"noOfficialDetour": true,
"stateHighway": null,
"id": 24513
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment