Skip to content

Instantly share code, notes, and snippets.

@fabdrol
Last active April 26, 2016 07:35
Show Gist options
  • Save fabdrol/a409d7a83dcd78cbed897256e5488c46 to your computer and use it in GitHub Desktop.
Save fabdrol/a409d7a83dcd78cbed897256e5488c46 to your computer and use it in GitHub Desktop.
Full example, referencing routes/waypoints in resources
{
"vessels": {
"vessels.urn:mrn:imo:mmsi:230099999": {
"navigation": {
"course": {
"trackMode": "RhumbLine",
"crossTrackError": {
"value": -8.67,
"timestamp": "(...)",
"$source": "(...)"
},
"bearingTrackTrue": {
"value": 0.9162978572970231,
"timestamp": "(...)",
"$source": "(...)"
},
"bearingTrackMagnetic": {
"value": 1.1986521,
"timestamp": "(...)",
"$source": "(...)"
},
"activeRoute": {
"value": "/vessels/vessels.urn:mrn:imo:mmsi:230099999/resources/routes/urn:mrn:signalk:uuid:3dd34dcc-36bf-4d61-ba80-233799b25672",
"timestamp": "(...)",
"$source": "(...)"
},
"nextPoint": {
"type": "Waypoint",
"id": "/vessels/vessels.urn:mrn:imo:mmsi:230099999/resources/waypoints/urn:mrn:signalk:uuid:4fe4ff38-879a-46ed-9a7d-7caeea475241",
"distance": 2407.6000020320143,
"bearingTrue": 0.9162978572970231,
"velocityMadeGood": 0.2572222873852017,
"position": {
"latitude": 49.287333333333336,
"longitude": -123.1595
},
"timestamp": "(...)",
"$source": "(...)"
},
"lastPoint": {
"type": "Waypoint",
"id": "/vessels/vessels.urn:mrn:imo:mmsi:230099999/resources/waypoints/urn:mrn:signalk:uuid:dd4a4c06-0c1d-4b5e-90c3-963649ee5e6d",
"position": {
"latitude": 49.287333333333336,
"longitude": -123.1595
},
"timestamp": "(...)",
"$source": "(...)"
}
}
}
}
},
"version": "v1",
"self": "vessels.urn:mrn:imo:mmsi:230099999"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment