Voyage itinerary GeoJSON
API 5.31.0 delivers the GeoJSON data of any voyage in the system.
Get the GeoJSON and use it in Google Maps or in any other application, that support the standard format, to show the itinerary of any voyage.
The GeoJson is delivered by Voyage endpoint specifying in the HTTP Header parameter fields
the attribute geoJson:
fields: {"geoJson":"*"}
The value returned by the API is a JSON encode Base64:
Â
{
"geoJson": "eyJpbmZvIjp7ImNvcHlyaWdodHMiOlsiVmlrdSBBUyJdLCJ0b29rIjoyN30sInBhdGhzIjpbeyJkaXN0YW5jZSI6MTA3MC40MTM5Nzk0ODE2NDE1LCJiYm94IjpbNC4xMDEzNzgsNTcuNzU1LDE5LjM3NDcwNyw2OS42NTIzODddLCJwb2ludHMiOnsiY29vcmRpbmF0ZXMiOltbMTAuODI4LDU3Ljc1NV0sWzEwLjg5MTk1Nyw1Ny44MTU2NF0sWzguMzYzNjAzLDU3Ljg4NjkyMl0sWzguMzYzNjAzLDU3Ljg4NjkyMl0sWzcuMjI2Mjg0LDU3LjkxODA1M10sWzYuOTI2NjYyLDU3Ljk4OTUyMl0sWzYuNTE5MDkzLDU4LjA3OTU1OF0sWzUuOTk5ODEzLDU4LjMzNjcxN10sWzUuOTg3NjUyLDU4LjM4NTM5N10sWzUuOTk1ODU0LDU4LjM5NTAzNl0sWzUuOTk3MDk2LDU4LjQwNDkzM10sWzUuOTkzODY1LDU4LjQxNzY5Ml0sWzUuOTkxMzgsNTguNDIzOTM5XSxbNS45ODk4ODksNTguNDI5Nzk1XSxbNS45ODk2NCw1OC40MzM4MjhdLFs1Ljk4ODMyNyw1OC40MzYzNDddLFs1Ljk4NzQwMyw1OC40MzgxMjFdLFs1Ljk4NzUxMiw1OC40NDMzMjRdLFs1Ljk4NzEwOCw1OC40NDYzMzJdLFs1Ljk4NjQ4Nyw1OC40NDg1MjddLFs1Ljk4NjQ3LDU4LjQ0ODU3XSxbNS45ODY0ODcsNTguNDQ4NTI3XSxbNS45ODcxMDgsNTguNDQ2MzMyXSxbNS45ODc1MTIsNTguNDQz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yLHsiaW5fZWNhIjp0cnVlLCJuYW1lIjoiTm9ydGggU2VhIGFuZCBCYWx0aWMiLCJkaXN0YW5jZSI6NDE1Ljk3MTMwNjY5NTQ2NDM2LCJmcm9tIjpbMTAuODI4LDU3Ljc1NV0sInRvIjpbNC4xMDM4LDYyLjBdfV0sWzQyLDk1LHsiaW5fZWNhIjpmYWxzZSwibmFtZSI6IiIsImRpc3RhbmNlIjo2NTQuNDQyNjg4OTg0ODgxMiwiZnJvbSI6WzQuMTAzOCw2Mi4wXSwidG8iOlsxOS4zNjA2ODIsNjkuMjM4Mjk1XX1dXSwiaHJhX2Rpc3RhbmNlIjpbWzAsOTUseyJpbl9ocmEiOmZhbHNlLCJkaXN0YW5jZSI6MTA3MC40MTM5OTU2ODAzNDU2LCJmcm9tIjpbMTAuODI4LDU3Ljc1NV0sInRvIjpbMTkuMzYwNjgyLDY5LjIzODI5NV19XV0sIm5hbWUiOltbMCw5NywiIl1dLCJzbmFwcGVkX3BvaW50cyI6eyJjb29yZGluYXRlcyI6W1sxMC44MjgsNTcuNzU1XSxbNS45ODY0NzEsNTguNDQ4NTddLFs1Ljk4ODMyNyw1OC40MzYzNDddLFsxOS4zNjA2ODIsNjkuMjM4Mjk1XV19fX1dfQ==",
"key": 18809917,
"self": "http://platform-dev.dataloy.com/ws/rest/Voyage/18809917"
}
Decoding it:
{
"info":{
"copyrights":[
"Viku AS"
],
"took":27
},
"paths":[
{
"distance":1070.4139794816415,
"bbox":[
4.101378,
57.755,
19.374707,
69.652387
],
"points":{
"coordinates":[
[
10.828,
57.755
],
[
10.891957,
57.81564
],
[
8.363603,
57.886922
],
[
8.363603,
57.886922
],
[
7.226284,
57.918053
],
[
6.926662,
57.989522
],
[
6.519093,
58.079558
],
[
5.999813,
58.336717
],
[
5.987652,
58.385397
],
[
5.995854,
58.395036
],
[
5.997096,
58.404933
],
[
5.993865,
58.417692
],
[
5.99138,
58.423939
],
[
5.989889,
58.429795
],
[
5.98964,
58.433828
],
[
5.988327,
58.436347
],
[
5.987403,
58.438121
],
[
5.987512,
58.443324
],
[
5.987108,
58.446332
],
[
5.986487,
58.448527
],
[
5.98647,
58.44857
],
[
5.986487,
58.448527
],
[
5.987108,
58.446332
],
[
5.987512,
58.443324
],
[
5.987403,
58.438121
],
[
5.988327,
58.436347
],
[
5.98964,
58.433828
],
[
5.989889,
58.429795
],
[
5.99138,
58.423939
],
[
5.993865,
58.417692
],
[
5.997096,
58.404933
],
[
5.995854,
58.395036
],
[
5.987652,
58.385397
],
[
5.856369,
58.376585
],
[
5.856369,
58.376585
],
[
5.626529,
58.518006
],
[
5.143636,
58.892662
],
[
4.101378,
59.8998
],
[
4.101895,
60.34855
],
[
4.102413,
60.7973
],
[
4.10293,
61.24605
],
[
4.103448,
61.6948
],
[
4.1038,
62.0
],
[
4.104317,
62.44862
],
[
4.104835,
62.897239
],
[
4.104859,
62.918557
],
[
4.554728,
63.32592
],
[
5.004598,
63.733283
],
[
5.454467,
64.140647
],
[
5.904337,
64.54801
],
[
6.354206,
64.955373
],
[
6.804075,
65.362736
],
[
7.253945,
65.7701
],
[
7.703814,
66.177463
],
[
8.153683,
66.584826
],
[
8.603553,
66.992189
],
[
9.053422,
67.399553
],
[
9.315194,
67.636591
],
[
9.853683,
68.036379
],
[
10.009775,
68.152265
],
[
10.955861,
68.456342
],
[
11.901948,
68.76042
],
[
12.848034,
69.064497
],
[
13.794121,
69.368574
],
[
17.000931,
69.652387
],
[
17.000931,
69.652387
],
[
17.78906,
69.636253
],
[
17.867739,
69.609249
],
[
17.951789,
69.57003
],
[
18.058605,
69.532647
],
[
18.096876,
69.505865
],
[
18.258055,
69.504393
],
[
18.443702,
69.524181
],
[
18.630762,
69.546915
],
[
18.698612,
69.554488
],
[
18.740076,
69.555146
],
[
18.78154,
69.559425
],
[
18.845621,
69.580806
],
[
18.889441,
69.6066
],
[
18.899206,
69.565032
],
[
18.928051,
69.513443
],
[
18.945492,
69.466671
],
[
18.951529,
69.450901
],
[
18.992449,
69.436062
],
[
19.033369,
69.41626
],
[
19.041419,
69.391246
],
[
19.07496,
69.369748
],
[
19.138352,
69.357336
],
[
19.254404,
69.358046
],
[
19.326852,
69.350477
],
[
19.362404,
69.325336
],
[
19.373891,
69.312554
],
[
19.374707,
69.295689
],
[
19.364334,
69.252054
],
[
19.361059,
69.238261
],
[
19.360682,
69.238295
]
]
},
"details":{
"eca_distance":[
[
0,
42,
{
"in_eca":true,
"name":"North Sea and Baltic",
"distance":415.97130669546436,
"from":[
10.828,
57.755
],
"to":[
4.1038,
62.0
]
}
],
[
42,
95,
{
"in_eca":false,
"name":"",
"distance":654.4426889848812,
"from":[
4.1038,
62.0
],
"to":[
19.360682,
69.238295
]
}
]
],
"hra_distance":[
[
0,
95,
{
"in_hra":false,
"distance":1070.4139956803456,
"from":[
10.828,
57.755
],
"to":[
19.360682,
69.238295
]
}
]
],
"name":[
[
0,
97,
""
]
],
"snapped_points":{
"coordinates":[
[
10.828,
57.755
],
[
5.986471,
58.44857
],
[
5.988327,
58.436347
],
[
19.360682,
69.238295
]
]
}
}
}
]
}
Â