Home > Geopedia API > features

features

List of result features.

Response JSON members:

  • command: "features",
  • error: true/false,
  • errorMessage: optional message string when error occured,
  • features: [<list of features>]

"features" consist of:

  • tableId: table ID
  • fields: [<list of fields>] where fields consist of {type:<type enum>, id:<field ID>, name:<field name>, value:<field value>, referencedReptext:<reptext of the foreign reference>}

"type" enum values:

  • 1 = IDENTIFIER
  • 3 = NUMERIC
  • 6 = PLAINTEXT
  • 8 = WIKITEXT
  • 9 = BINARYREFERENCE
  • 10 = DATETIME
  • 13 = STYLE
  • 16 = BOOLEAN
  • 17 = GEOMETRY

Example:

{"command":"features","error":false,"features":[ 
     {"tableId":123,"fields":[ 
          {"type":3,"id":123,"name":"field","value":"value"} 
     ]} 
]}