{"_id":"59e70b9fe027ae002e7d2f0d","category":{"_id":"59e70b9ee027ae002e7d2eda","version":"59e70b9ee027ae002e7d2ed2","project":"5496d393f52a630b00519cdd","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-12-21T18:49:06.424Z","from_sync":false,"order":8,"slug":"structures","title":"Structures"},"parentDoc":null,"user":"5496d353f52a630b00519cdc","project":"5496d393f52a630b00519cdd","version":{"_id":"59e70b9ee027ae002e7d2ed2","project":"5496d393f52a630b00519cdd","__v":2,"createdAt":"2017-10-18T08:06:54.462Z","releaseDate":"2017-10-18T08:06:54.462Z","categories":["59e70b9ee027ae002e7d2ed3","59e70b9ee027ae002e7d2ed4","59e70b9ee027ae002e7d2ed5","59e70b9ee027ae002e7d2ed6","59e70b9ee027ae002e7d2ed7","59e70b9ee027ae002e7d2ed8","59e70b9ee027ae002e7d2ed9","59e70b9ee027ae002e7d2eda","59e70b9ee027ae002e7d2edb","59e70b9ee027ae002e7d2edc","59e70b9ee027ae002e7d2edd","59e70b9ee027ae002e7d2ede","59e70b9ee027ae002e7d2edf","5b8661ccdd19310003a3fa0b"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"2.0.10","version":"2.0.10"},"githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-27T14:01:50.365Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Field\",\n    \"h-1\": \"Description\",\n    \"h-2\": \"Type\",\n    \"h-3\": \"Example\",\n    \"0-0\": \"id\",\n    \"0-3\": \"53c80eac1b963300023e52e1\",\n    \"0-2\": \"string\",\n    \"0-1\": \"Visit object ID.\",\n    \"3-0\": \"end_time\",\n    \"2-0\": \"start_time\",\n    \"3-1\": \"End time and date.\",\n    \"2-1\": \"Start time and date.\",\n    \"1-0\": \"event_type\",\n    \"1-1\": \"Will always be \\\"visit\\\".\",\n    \"3-2\": \"ISO-8601\",\n    \"2-2\": \"ISO-8601\",\n    \"3-3\": \"2013-11-02T12:11:20.139-07:00\",\n    \"2-3\": \"2013-11-02T08:27:30.189-07:00\",\n    \"1-2\": \"string\",\n    \"1-3\": \"visit\",\n    \"4-0\": \"place\\n*(optional)*\",\n    \"4-1\": \"The place info, with location, address and venue info. **Returned only if specified in query parameters.**\",\n    \"4-2\": \"[Place Structure](doc:place)\",\n    \"4-3\": \"\",\n    \"6-0\": \"is_ongoing\",\n    \"6-1\": \"\\\"Ongoing\\\" visits may turn into finalized ones, merged into the last visit or be deleted. Note that ongoing visit's end time will be updated when the visit is over. Only the last visit in the timeline may be an \\\"ongoing\\\" visit.\",\n    \"6-2\": \"boolean\",\n    \"6-3\": \"true\",\n    \"5-0\": \"place_id\",\n    \"5-1\": \"The associated place ID.\",\n    \"5-2\": \"string\",\n    \"5-3\": \"53c80eac1b963300023e4425\",\n    \"7-0\": \"is_confirmed\",\n    \"7-1\": \"Is \\\"true\\\" if the visit was confirmed\",\n    \"7-2\": \"boolean\",\n    \"7-3\": \"true\"\n  },\n  \"cols\": 4,\n  \"rows\": 8\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Example\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n   \\\"id\\\":\\\"57f3eccdfdef263fe1e66df8\\\",\\n   \\\"event_type\\\":\\\"visit\\\",\\n   \\\"is_confirmed\\\":false,\\n   \\\"start_time\\\":\\\"2016-10-04T10:47:12.000-07:00\\\",\\n   \\\"end_time\\\":\\\"2016-10-04T12:12:17.000-07:00\\\",\\n   \\\"place_id\\\":\\\"57f3e746e4b01d4af1e1c050\\\",\\n   \\\"place\\\":{\\n      \\\"estimated_address\\\":{\\n         \\\"city\\\":\\\"San Francisco\\\",\\n         \\\"country\\\":\\\"United States\\\",\\n         \\\"state\\\":\\\"California\\\",\\n         \\\"formatted_city\\\":\\\"San Francisco, California, United States\\\",\\n         \\\"postal_code\\\":\\\"94103\\\",\\n         \\\"formatted_address\\\":\\\"135 4th Street, San Francisco, California, United States\\\",\\n         \\\"street_address\\\":\\\"135 4th Street\\\"\\n      },\\n      \\\"estimated_geolocation\\\":{\\n         \\\"lat\\\":37.784469903416,\\n         \\\"long\\\":-122.40330482239,\\n         \\\"accuracy\\\":3.3771327633926\\n      },\\n      \\\"type_id\\\":20,\\n      \\\"venue_info\\\":{\\n         \\\"category\\\":\\\"Shop & Service\\\",\\n         \\\"name\\\":\\\"Metreon\\\",\\n         \\\"probability\\\":0.85,\\n         \\\"sub_category\\\":\\\"Mall\\\"\\n      },\\n      \\\"first_visit_time\\\":\\\"2016-10-04T16:03:11.000Z\\\",\\n      \\\"venues\\\":[\\n         {\\n            \\\"category\\\":\\\"Shop & Service\\\",\\n            \\\"name\\\":\\\"Metreon\\\",\\n            \\\"probability\\\":0.85,\\n            \\\"sub_category\\\":\\\"Mall\\\"\\n         },\\n         {\\n            \\\"category\\\":\\\"Food\\\",\\n            \\\"name\\\":\\\"Mel's Drive-In\\\",\\n            \\\"probability\\\":0.06,\\n            \\\"sub_category\\\":\\\"Diner\\\"\\n         },\\n         {\\n            \\\"category\\\":\\\"Shop & Service\\\",\\n            \\\"name\\\":\\\"Off the Grid: 5M :::at::: Fifth and Minna\\\",\\n            \\\"probability\\\":0.04,\\n            \\\"sub_category\\\":\\\"Street Food Gathering\\\"\\n         },\\n         {\\n            \\\"category\\\":\\\"Food\\\",\\n            \\\"name\\\":\\\"Sharetea\\\",\\n            \\\"probability\\\":0.04,\\n            \\\"sub_category\\\":\\\"Bubble Tea Shop\\\"\\n         }\\n      ],\\n      \\\"last_visit_time\\\":\\\"2016-10-04T17:54:21.000Z\\\",\\n      \\\"type\\\":\\\"Shop & Service\\\",\\n      \\\"id\\\":\\\"57f3e746e4b01d4af1e1c050\\\"\\n   }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Visit\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"visit","type":"basic","title":"Visit"}
[block:parameters] { "data": { "h-0": "Field", "h-1": "Description", "h-2": "Type", "h-3": "Example", "0-0": "id", "0-3": "53c80eac1b963300023e52e1", "0-2": "string", "0-1": "Visit object ID.", "3-0": "end_time", "2-0": "start_time", "3-1": "End time and date.", "2-1": "Start time and date.", "1-0": "event_type", "1-1": "Will always be \"visit\".", "3-2": "ISO-8601", "2-2": "ISO-8601", "3-3": "2013-11-02T12:11:20.139-07:00", "2-3": "2013-11-02T08:27:30.189-07:00", "1-2": "string", "1-3": "visit", "4-0": "place\n*(optional)*", "4-1": "The place info, with location, address and venue info. **Returned only if specified in query parameters.**", "4-2": "[Place Structure](doc:place)", "4-3": "", "6-0": "is_ongoing", "6-1": "\"Ongoing\" visits may turn into finalized ones, merged into the last visit or be deleted. Note that ongoing visit's end time will be updated when the visit is over. Only the last visit in the timeline may be an \"ongoing\" visit.", "6-2": "boolean", "6-3": "true", "5-0": "place_id", "5-1": "The associated place ID.", "5-2": "string", "5-3": "53c80eac1b963300023e4425", "7-0": "is_confirmed", "7-1": "Is \"true\" if the visit was confirmed", "7-2": "boolean", "7-3": "true" }, "cols": 4, "rows": 8 } [/block] [block:api-header] { "type": "basic", "title": "Example" } [/block] [block:code] { "codes": [ { "code": "{\n \"id\":\"57f3eccdfdef263fe1e66df8\",\n \"event_type\":\"visit\",\n \"is_confirmed\":false,\n \"start_time\":\"2016-10-04T10:47:12.000-07:00\",\n \"end_time\":\"2016-10-04T12:12:17.000-07:00\",\n \"place_id\":\"57f3e746e4b01d4af1e1c050\",\n \"place\":{\n \"estimated_address\":{\n \"city\":\"San Francisco\",\n \"country\":\"United States\",\n \"state\":\"California\",\n \"formatted_city\":\"San Francisco, California, United States\",\n \"postal_code\":\"94103\",\n \"formatted_address\":\"135 4th Street, San Francisco, California, United States\",\n \"street_address\":\"135 4th Street\"\n },\n \"estimated_geolocation\":{\n \"lat\":37.784469903416,\n \"long\":-122.40330482239,\n \"accuracy\":3.3771327633926\n },\n \"type_id\":20,\n \"venue_info\":{\n \"category\":\"Shop & Service\",\n \"name\":\"Metreon\",\n \"probability\":0.85,\n \"sub_category\":\"Mall\"\n },\n \"first_visit_time\":\"2016-10-04T16:03:11.000Z\",\n \"venues\":[\n {\n \"category\":\"Shop & Service\",\n \"name\":\"Metreon\",\n \"probability\":0.85,\n \"sub_category\":\"Mall\"\n },\n {\n \"category\":\"Food\",\n \"name\":\"Mel's Drive-In\",\n \"probability\":0.06,\n \"sub_category\":\"Diner\"\n },\n {\n \"category\":\"Shop & Service\",\n \"name\":\"Off the Grid: 5M @ Fifth and Minna\",\n \"probability\":0.04,\n \"sub_category\":\"Street Food Gathering\"\n },\n {\n \"category\":\"Food\",\n \"name\":\"Sharetea\",\n \"probability\":0.04,\n \"sub_category\":\"Bubble Tea Shop\"\n }\n ],\n \"last_visit_time\":\"2016-10-04T17:54:21.000Z\",\n \"type\":\"Shop & Service\",\n \"id\":\"57f3e746e4b01d4af1e1c050\"\n }\n}", "language": "json", "name": "Visit" } ] } [/block]