-
Notifications
You must be signed in to change notification settings - Fork 12
JSON format
Hyemi Jeong edited this page May 21, 2018
·
17 revisions
User can send their data to the RESTful server of InFactory in JSON format. All the elements in IndoorGML can be expressed by JSON. This is the default format of JSON.
{
"docId" : "", // which document contains this elements
"type" : "", // which type of IndoorGML complex feature
"id" : "", // identifier of IndoorGML
"parentId" : "" // the identifier of the element which has the association relationship with this element.
{
“type” : ”CellSpace”,
“id” : “c1”,
“parentId” : “psf1”,
“docId” : “doc1”,
“geometry” : {
“type” : “Solid|Surface”,
“coordinates” : [] | “wkt”,
“properties” : {
“id” : “cg1”,
“extrude” : “true|false”,
“height” : “1”,
}
},
“properties” : {
“name” : “cell1”,
“description”: “blah blah blah”,
“partialboundedBy” : [“cb1”, “cb2”,”cb3”]
}
}
{
“type” : “CellSpaceBoundary”,
“id” : “csb1”,
“parentId” : “psf1”,
“docId” : “doc1”,
“geometry” : {
“type” : “Surface|LineString”,
“coordinates” : [],
“properties” : {
“id” : “cgb1”,
“extrude” : “true|false”,
“height” : “value1” //the height of the door
}
},
“properties” : {
“name” : “CellBoundary1”,
“description” : “cellspaceboundary of cell1”
“duality” : “T1”,
}
}
{
“type”:”State”,
“id” : “s1”,
“parentId” : “n1”,
“docId” : “doc1”,
“geometry” : {
“type” : “Point”,
“coordinates” : [],
“properties” : {
“id” : “sg1”
}
},
“properties” : {
“name” : “s1”,
“description” : “state”,
“duality” : “c1”,
“connected” : [“t1”, “t2”]
}
}
{
“type” : “Transition”,
“id” : “t1”,
“parentId” : “e1”,
“geometry” : {
“type” : “LineString”,
“coordinates” : [],
“properties” : {
“id” : “tg1”
}
},
“properties” : {
“weight” : “0”,
“connects” : [],
“duality” : “csb1”
}
}