OpenArCloud / oscp-spatial-content-discovery

OSCP Spatial Content Discovery
MIT License
8 stars 2 forks source link

Would be nice to have a handy example record to post with all details and the right format #39

Open janerivi opened 2 years ago

janerivi commented 2 years ago

When looking at the readme I'm not seeing an example record for testing the post command.

jamesjackson commented 2 years ago

Will update the readme. Sample input based on the latest geopose format (current github code):

{
  "type": "scr",
  "content": {
    "id": "111",
    "type": "3d",
    "title": "cat model",
    "description": "description of cat model",
    "placekey": "223@8t2-fj4-5zz",
    "keywords": [
      "cat"
    ],
    "refs": [
      {"contentType": "model/gltf+json", "url": "https://www.example.com/cat.gltf"},
      {"contentType": "model/vnd.usdz+zip", "url": "https://www.example.com/cat.usdz"}
    ],
    "geopose": {
      "position": {"lon": -97.7288818359375, "lat": 30.286160447473897, "h": 78.34},
      "quaternion": {"x": 0.5, "y": 0.5, "z": 0.5, "w": 0.5}
    },
    "size": 100,
    "definitions": [{"type": "testtype", "value":"testvalue"}]
  }
}

Sample input based on previous geopose format (AWS prototypes):

{
  "type": "scr",
  "content": {
    "id": "111",
    "type": "3d",
    "title": "cat model",
    "description": "description of cat model",
    "placekey": "223@8t2-fj4-5zz",
    "keywords": [
      "cat"
    ],
    "refs": [
      {"contentType": "model/gltf+json", "url": "https://www.example.com/cat.gltf"},
      {"contentType": "model/vnd.usdz+zip", "url": "https://www.example.com/cat.usdz"}
    ],
    "geopose": {
      "longitude": -97.7288818359375,
      "latitude": 30.286160447473897,
      "ellipsoidHeight": 78.34,
      "quaternion": {"x": 0.5, "y": 0.5, "z": 0.5, "w": 0.5}
    },
    "size": 100,
    "definitions": [{"type": "testtype", "value":"testvalue"}]
  }
}
jamesjackson commented 2 years ago

will close once readme updated