kieranm/gpig

Create JSON Interface for INIT and UPDATE messages (6SP)

Closed this issue · 1 comments

Create JSON Interface for INIT and UPDATE messages (6SP)

Backend to Frontend

{
    "message_type": "init" || "update",
    "coastal_ports": [{id:, name:, capacity:, load:, coordinates: {latitude: , longitude: }},...],
    "smart_ports": [{id:, name:, capacity:, load:, coordinates: {latitude: , longitude: }},...],
    "smart_boats": [{id:, capacity:, load:, coordinates: {latitude: , longitude: }},...],
    "ships": [{id:, capacity:, load:, coordinates: {latitude: , longitude: }},...],
    "weather: [{id:, severity:, coordinates: {latitude:, longitude:}},...]
}

Frontend to Backend

{
    "message_type": "settings",
    "speed":,
    "type": "legacy" || "oceanx" 
}