SDTT警告称,“geo”和“hasMap”“未被Google识别为DiagnosticLab类型的对象”

时间:2017-12-10 01:33:22

标签: schema.org

当我测试我的JSON-LD时,我在Google的SDTT中收到了这些警告:

仅仅是因为DiagnosticLab类型?我应该删除那部分代码吗?

1 个答案:

答案 0 :(得分:0)

未为geo类型定义hasMapDiagnosticLab属性。它们只能用于//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值)。 contactPointaddress属性也可能很有用。