当我测试我的JSON-LD时,我在Google的SDTT中收到了这些警告:
仅仅是因为DiagnosticLab
类型?我应该删除那部分代码吗?
答案 0 :(得分:0)
未为geo
类型定义hasMap
和DiagnosticLab
属性。它们只能用于//This call:
destCell(grid, i-1, j, dest);
//To this function:
void destCell(int grid[][COL], int x, int y, Pair dest){
if (isValid(x, y) == true){
if (isDestination(x, y, dest) == true){
cellDetails[x][y].parent_i = x;
cellDetails[x][y].parent_j = y;
printf ("The destination cell is found\n");
tracePath (cellDetails, dest);
foundDest = true;
return;
}else if (closedList[x][y] == false && isUnBlocked(grid, x, y) == true){
gNew = cellDetails[x][y].g + 1.0;
hNew = calculateHValue (x, y, dest);
fNew = gNew + hNew;
if (cellDetails[x][y].f == FLT_MAX || cellDetails[x][y].f > fNew){
openList.insert( make_pair(fNew, make_pair(x, y)));
cellDetails[x][y].f = fNew;
cellDetails[x][y].g = gNew;
cellDetails[x][y].h = hNew;
cellDetails[x][y].parent_i = x;
cellDetails[x][y].parent_j = y;
}
}
}
}
及其子类型。
location
属性允许您提供“组织所在位置”(您可以提供Place
值)。 contactPoint
和address
属性也可能很有用。