From 3c4d9772bb07192820f13feee4380b5eb5d4535d Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 21 May 2018 00:02:08 -0400 Subject: [PATCH] update for current ubm2 document --- sample_google_api/test_scipt.sql | 43 +++++++++++++++++++------------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/sample_google_api/test_scipt.sql b/sample_google_api/test_scipt.sql index 29f6355..c521eb5 100644 --- a/sample_google_api/test_scipt.sql +++ b/sample_google_api/test_scipt.sql @@ -32,26 +32,33 @@ copy select $$ { - "destination_addresses" : [ "New York, NY, USA" ], - "origin_addresses" : [ "Washington, DC, USA" ], - "rows" : [ - { - "elements" : [ + "id": 1, + "doc": { + "rows": [ { - "distance" : { - "text" : "225 mi", - "value" : 361940 - }, - "duration" : { - "text" : "3 hours 50 mins", - "value" : 13812 - }, - "status" : "OK" + "elements": [ + { + "status": "OK", + "distance": { + "text": "225 mi", + "value": 361940 + }, + "duration": { + "text": "3 hours 50 mins", + "value": 13812 + } + } + ] } - ] - } - ], - "status" : "OK" + ], + "status": "OK", + "origin_addresses": [ + "Washington, DC, USA" + ], + "destination_addresses": [ + "New York, NY, USA" + ] + } } $$::JSONB DOC )