DocsWeb Console

Route Intent

Interpretation and fulfillment for navigation intent request.

Sample route interpretation

{
    "version": "0.0.1",
    "mode": "none",
    "utterance": "What is the route to Starbucks in Los Altos",
    "session": {},
    "id": "9424c798-1b6b-4815-82eb-c663178e3efe",
    "interpretations": [
        {
            "domain": "navigation",
            "intent": "route",
            "score": 4.314235687255859,
            "speechText": "Traffic to starbucks",
            "displayText": "Traffic to  starbucks",
            "debug": {},
            "hints": [],
            "fulfillment": {
                "destination": "starbucks",
                "command": "search",
                "option": "fastest",
                "thirdPartyResults": [
                    {
                        "source": "Google Directions",
                        "area": {
                            "address": "Los Altos, CA, USA",
                            "name": "Los Altos",
                            "placeId": "ChIJz0bVI-Gwj4AR_KZl1l0YBWU",
                            "longitude": -122.1141298,
                            "latitude": 37.3852183
                        },
                        "origin": {
                            "address": "",
                            "name": "Current location",
                            "placeId": "",
                            "longitude": -122.166077,
                            "latitude": 37.424107
                        },
                        "destinations": [
                            {
                                "placeId": "ChIJl4LAyO-wj4ARbJpD228kcDk",
                                "address": "",
                                "longitude": -122.1167181,
                                "latitude": 37.3785398,
                                "name": "Starbucks",
                                "trafficInfo": {
                                    "distanceText": "4.9 mi",
                                    "distanceValue": 7929,
                                    "durationText": "14 mins",
                                    "durationValue": 841,
                                    "durationInTrafficText": "13 mins",
                                    "durationInTrafficValue": 805,
                                    "summary": "Foothill Expy",
                                    "congestionLevel": "light"
                                },
                                "route": [
                                    {
                                        "distance": {
                                            "text": "318 ft",
                                            "value": 97
                                        },
                                        "duration": {
                                            "text": "1 min",
                                            "value": 34
                                        },
                                        "polyline": {
                                            "points": "milcFrqshVDg@`@kD"
                                        },
                                        "endLocation": {
                                            "latitude": 37.4235497,
                                            "longitude": -122.1651182
                                        },
                                        "htmlInstructions": "Head <b>east</b> on <b>Bowdoin Ln</b> toward <b>Arguello Way</b>",
                                        "startLocation": {
                                            "latitude": 37.4237548,
                                            "longitude": -122.1661813
                                        },
                                        "travelMode": "DRIVING"
                                    },
                                    {
                                        "distance": {
                                            "text": "223 ft",
                                            "value": 68
                                        },
                                        "duration": {
                                            "text": "1 min",
                                            "value": 21
                                        },
                                        "maneuver": "turn-right",
                                        "polyline": {
                                            "points": "ehlcF~jshVxBC"
                                        },
                                        "endLocation": {
                                            "latitude": 37.422942,
                                            "longitude": -122.1651017
                                        },
                                        "htmlInstructions": "Turn <b>right</b> onto <b>Arguello Way</b>",
                                        "startLocation": {
                                            "latitude": 37.4235497,
                                            "longitude": -122.1651182
                                        },
                                        "travelMode": "DRIVING"
                                    },
                                    {
                                        "distance": {
                                            "text": "0.2 mi",
                                            "value": 341
                                        },
                                        "duration": {
                                            "text": "1 min",
                                            "value": 57
                                        },
                                        "maneuver": "turn-left",
                                        "polyline": {
                                            "points": "kdlcFzjshVLA`@gBNo@H_@H_@J]FYBOBMBO@OBS@Q@S@c@@YAc@A_@A_@E]CUCWGUEYAECGIY"
                                        },
                                        "endLocation": {
                                            "latitude": 37.4225397,
                                            "longitude": -122.1615015
                                        },
                                        "htmlInstructions": "Turn <b>left</b> at the 1st cross street onto <b>Campus Drive</b>",
                                        "startLocation": {
                                            "latitude": 37.422942,
                                            "longitude": -122.1651017
                                        },
                                        "travelMode": "DRIVING"
                                    },
                                    {
                                        "distance": {
                                            "text": "0.4 mi",
                                            "value": 597
                                        },
                                        "duration": {
                                            "text": "1 min",
                                            "value": 70
                                        },
                                        "maneuver": "roundabout-right",
                                        "polyline": {
                                            "points": "{alcFjtrhV?A?A?A?A?A?A?AAA?ALSJIJKNMLKLIPQPQj@m@fA{ATYR[n@_Ah@y@\\i@h@_ATc@Te@Xm@HQRa@@C?A?A?A@A@QnAuCr@cBFM"
                                        },
                                        "endLocation": {
                                            "latitude": 37.41913,
                                            "longitude": -122.1564081
                                        },
                                        "htmlInstructions": "At the traffic circle, take the <b>1st</b> exit onto <b>Bowdoin St</b>",
                                        "startLocation": {
                                            "latitude": 37.4225397,
                                            "longitude": -122.1615015
                                        },
                                        "travelMode": "DRIVING"
                                    }
                                ],
                                "basicInfo": {
                                    "openNow": true,
                                    "vicinity": "296 Main St, Los Altos",
                                    "rating": 3.8,
                                    "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/cafe-71.png",
                                    "photosLink": "https://maps.google.com/maps/contrib/115656064402646735019/photos"
                                },
                                "id": "16f2d7cf04c61227544e0c07291046bd0dc2df5f"
                            }
                        ]
                    }
                ]
            }
        }
    ]
}

Traffic Intent

Interpretation and fulfillment for traffic intent request.

Sample traffic interpretation

{
    "version": "0.0.1",
    "mode": "none",
    "utterance": "How is the traffic to Starbucks in San Jose",
    "session": {},
    "id": "3ce6f102-83a5-4a24-9ece-6959ea6318d2",
    "interpretations": [
        {
            "domain": "navigation",
            "intent": "traffic",
            "score": 4.955375671386719,
            "speechText": "The fastest route to starbucks takes about 43 mins in current traffic through I-280 S.",
            "displayText": "Traffic to  starbucks",
            "debug": {},
            "hints": [],
            "fulfillment": {
                "destination": "starbucks",
                "command": "search",
                "option": "summary",
                "thirdPartyResults": [
                    {
                        "source": "Google Directions",
                        "area": {
                            "address": "San Jose, CA, USA",
                            "name": "San Jose",
                            "placeId": "ChIJ9T_5iuTKj4ARe3GfygqMnbk",
                            "longitude": -121.8863286,
                            "latitude": 37.3382082
                        },
                        "origin": {
                            "address": "",
                            "name": "Current location",
                            "placeId": "",
                            "longitude": -122.166077,
                            "latitude": 37.424107
                        },
                        "destinations": [
                            {
                                "placeId": "ChIJBQA3D6PMj4ARetqtcBmIkR8",
                                "address": "",
                                "longitude": -121.8884353,
                                "latitude": 37.3373957,
                                "name": "Starbucks",
                                "trafficInfo": {
                                    "distanceText": "21.8 mi",
                                    "distanceValue": 35158,
                                    "durationText": "30 mins",
                                    "durationValue": 1803,
                                    "durationInTrafficText": "43 mins",
                                    "durationInTrafficValue": 2565,
                                    "summary": "I-280 S",
                                    "congestionLevel": "heavy"
                                },
                                "basicInfo": {
                                    "openNow": true,
                                    "vicinity": "101 E Santa Clara St, San Jose",
                                    "rating": 4.1,
                                    "icon": "http://localhost:3000/v1/pick?link=aHR0cHM6Ly9tYXBzLmdzdGF0aWMuY29tL21hcGZpbGVzL3BsYWNlX2FwaS9pY29ucy9jYWZlLTcxLnBuZw==&id=d5008286-359b-4461-9d18-b6fc9484ca3b&rid=12955f65-fbc1-4332-8c02-82999d0f130c",
                                    "photosLink": "http://localhost:3000/v1/pick?link=aHR0cHM6Ly9tYXBzLmdvb2dsZS5jb20vbWFwcy9jb250cmliLzEwNTU2ODcwMzI1MzMxMTI4MTczMC9waG90b3M=&id=d5008286-359b-4461-9d18-b6fc9484ca3b&rid=12955f65-fbc1-4332-8c02-82999d0f130c"
                                },
                                "id": "4842b26e7f62515e0173ac8cc80815b8cec4b5c9"
                            }
                        ]
                    }
                ]
            }
        }
    ]
}

POI Intent

Interpretation and fulfillment for poi intent request.

Sample poi interpretation

{
    "version": "0.0.1",
    "mode": "none",
    "utterance": "find a Bank of America in San Francisco",
    "session": {},
    "id": "8a7be0e6-e468-4fa8-8d78-a05c0ead464c",
    "interpretations": [
        {
            "domain": "navigation",
            "intent": "poi",
            "score": 5.708042621612549,
            "speechText": "Searching bank of america",
            "displayText": "Searching bank of america",
            "debug": {},
            "hints": [],
            "fulfillment": {
                "destination": "bank of america",
                "command": "search",
                "option": "none",
                "thirdPartyResults": [
                    {
                        "source": "Google Places",
                        "area": {
                            "address": "San Francisco, CA, USA",
                            "name": "San Francisco",
                            "placeId": "ChIJIQBpAG2ahYAR_6128GcTUEo",
                            "longitude": -122.4194155,
                            "latitude": 37.7749295
                        },
                        "origin": {
                            "address": "",
                            "name": "Current location",
                            "placeId": "",
                            "longitude": -122.166077,
                            "latitude": 37.424107
                        },
                        "destinations": [
                            {
                                "placeId": "ChIJ5cQ7hZ6AhYARZK6obF69Uh8",
                                "address": "",
                                "longitude": -122.4189202,
                                "latitude": 37.7751643,
                                "name": "Bank of America Financial Center",
                                "basicInfo": {
                                    "openNow": true,
                                    "vicinity": "1525 Market St, San Francisco",
                                    "rating": 2.4,
                                    "icon": "http://localhost:3000/v1/pick?link=aHR0cHM6Ly9tYXBzLmdzdGF0aWMuY29tL21hcGZpbGVzL3BsYWNlX2FwaS9pY29ucy9iYW5rX2RvbGxhci03MS5wbmc=&id=ffbe4061-d27d-44c5-9b92-ee2ead1ec14d&rid=ec065214-b430-4a84-90c2-5d66d5302927",
                                    "photosLink": "http://localhost:3000/v1/pick?link=aHR0cHM6Ly9tYXBzLmdvb2dsZS5jb20vbWFwcy9jb250cmliLzExNzI4OTMzMzMxNzY3Mjg3NzA0OS9waG90b3M=&id=ffbe4061-d27d-44c5-9b92-ee2ead1ec14d&rid=ec065214-b430-4a84-90c2-5d66d5302927"
                                },
                                "id": "ed17049f6df89a0a8fa72ec20e7cc21dc10c1f8e"
                            },
                            {
                                "placeId": "ChIJkS9j8YWAhYARTuyQ2vQlBsQ",
                                "address": "",
                                "longitude": -122.408189,
                                "latitude": 37.7846951,
                                "name": "Bank of America Financial Center",
                                "basicInfo": {
                                    "openNow": true,
                                    "vicinity": "1 Powell St, San Francisco",
                                    "rating": 3.6,
                                    "icon": "http://localhost:3000/v1/pick?link=aHR0cHM6Ly9tYXBzLmdzdGF0aWMuY29tL21hcGZpbGVzL3BsYWNlX2FwaS9pY29ucy9iYW5rX2RvbGxhci03MS5wbmc=&id=ffbe4061-d27d-44c5-9b92-ee2ead1ec14d&rid=ec065214-b430-4a84-90c2-5d66d5302927",
                                    "photosLink": "http://localhost:3000/v1/pick?link=aHR0cHM6Ly9tYXBzLmdvb2dsZS5jb20vbWFwcy9jb250cmliLzEwNzYwMjMyODUzMDU0NDI3ODg2OC9waG90b3M=&id=ffbe4061-d27d-44c5-9b92-ee2ead1ec14d&rid=ec065214-b430-4a84-90c2-5d66d5302927"
                                },
                                "id": "8dd31c25b3206a7872ac9897b37eccd78fd61e15"
                            },
                            {
                                "placeId": "ChIJlcRnbbDQ3IARb1CqhyP3z1g",
                                "address": "",
                                "longitude": -122.4390285,
                                "latitude": 37.7737284,
                                "name": "Bank of America Financial Center",
                                "basicInfo": {
                                    "openNow": true,
                                    "vicinity": "1275 Fell St, San Francisco",
                                    "rating": 2.3,
                                    "icon": "http://localhost:3000/v1/pick?link=aHR0cHM6Ly9tYXBzLmdzdGF0aWMuY29tL21hcGZpbGVzL3BsYWNlX2FwaS9pY29ucy9iYW5rX2RvbGxhci03MS5wbmc=&id=ffbe4061-d27d-44c5-9b92-ee2ead1ec14d&rid=ec065214-b430-4a84-90c2-5d66d5302927",
                                    "photosLink": "http://localhost:3000/v1/pick?link=aHR0cHM6Ly9tYXBzLmdvb2dsZS5jb20vbWFwcy9jb250cmliLzExODQwNTQwNzQ1ODAxMTYzMzMxMS9waG90b3M=&id=ffbe4061-d27d-44c5-9b92-ee2ead1ec14d&rid=ec065214-b430-4a84-90c2-5d66d5302927"
                                },
                                "id": "dea776b010f9491a85ca4e62026439929dda9560"
                            }
                        ]
                    }
                ]
            }
        }
    ]
}

BizInfo Intent

Interpretation and fulfillment for bizinfo intent request.

Sample bizinfo interpretation

{
    "version": "0.0.1",
    "mode": "none",
    "utterance": "How is review about Starbucks in San Jose",
    "session": {},
    "id": "1193c728-995d-45d4-af42-3e01e79c8e68",
    "interpretations": [
        {
            "domain": "navigation",
            "intent": "bizinfo",
            "score": 0.5539290904998779,
            "speechText": "The customer rating for starbucks is 4.1",
            "displayText": "Searching starbucks",
            "debug": {},
            "hints": [],
            "fulfillment": {
                "destination": "starbucks",
                "command": "none",
                "option": "review",
                "thirdPartyResults": [
                    {
                        "source": "Google Places",
                        "area": {
                            "address": "San Jose, CA, USA",
                            "name": "San Jose",
                            "placeId": "ChIJ9T_5iuTKj4ARe3GfygqMnbk",
                            "longitude": -121.8863286,
                            "latitude": 37.3382082
                        },
                        "origin": {
                            "address": "",
                            "name": "Current location",
                            "placeId": "",
                            "longitude": -122.166077,
                            "latitude": 37.424107
                        },
                        "destinations": [
                            {
                                "placeId": "ChIJBQA3D6PMj4ARetqtcBmIkR8",
                                "address": "101 E Santa Clara St, San Jose, CA 95113, USA",
                                "longitude": -121.8884353,
                                "latitude": 37.3373957,
                                "name": "Starbucks",
                                "basicInfo": {
                                    "openNow": true,
                                    "vicinity": "101 E Santa Clara St, San Jose",
                                    "rating": 4.1,
                                    "icon": "http://localhost:3000/v1/pick?link=aHR0cHM6Ly9tYXBzLmdzdGF0aWMuY29tL21hcGZpbGVzL3BsYWNlX2FwaS9pY29ucy9jYWZlLTcxLnBuZw==&id=eb3cdbf7-1b76-42b0-84af-8b481bcb9358&rid=b093eeab-4c5b-4683-a918-445d7fcb9194",
                                    "photosLink": "http://localhost:3000/v1/pick?link=aHR0cHM6Ly9tYXBzLmdvb2dsZS5jb20vbWFwcy9jb250cmliLzEwNTU2ODcwMzI1MzMxMTI4MTczMC9waG90b3M=&id=eb3cdbf7-1b76-42b0-84af-8b481bcb9358&rid=b093eeab-4c5b-4683-a918-445d7fcb9194"
                                },
                                "id": "35c86d56-4ef6-4b8c-99ce-07629fde07fa",
                                "bizInfo": {
                                    "url": "http://localhost:3000/v1/pick?link=aHR0cHM6Ly9tYXBzLmdvb2dsZS5jb20vP2NpZD0yMjc0NzQ4OTI5NjQ0ODEyOTIy&id=eb3cdbf7-1b76-42b0-84af-8b481bcb9358&rid=b093eeab-4c5b-4683-a918-445d7fcb9194",
                                    "priceLevel": 2,
                                    "number": "+1 408-286-0577",
                                    "openingHours": [
                                        "Monday: 4:30 AM – 7:00 PM",
                                        "Tuesday: 4:30 AM – 7:00 PM",
                                        "Wednesday: 4:30 AM – 7:00 PM",
                                        "Thursday: 5:00 AM – 7:00 PM",
                                        "Friday: 5:00 AM – 7:30 PM",
                                        "Saturday: 5:30 AM – 7:00 PM",
                                        "Sunday: 7:00 AM – 6:30 PM"
                                    ],
                                    "website": "http://localhost:3000/v1/pick?link=aHR0cDovL3d3dy5zdGFyYnVja3MuY29tL3N0b3JlLzE4MTQ2Lw==&id=eb3cdbf7-1b76-42b0-84af-8b481bcb9358&rid=b093eeab-4c5b-4683-a918-445d7fcb9194",
                                    "reviews": [
                                        {
                                            "language": "en",
                                            "rating": 5,
                                            "text": "It's close to St. James Park!  I really like the area.  Most people are very friendly!",
                                            "time": 1528899800,
                                            "authorName": "UDonna Shelton",
                                            "authorUrl": "https://www.google.com/maps/contrib/113294706437142689988/reviews",
                                            "profilePhotoUrl": "https://lh4.googleusercontent.com/-D1jm6eL7o10/AAAAAAAAAAI/AAAAAAAAAAA/AB6qoq2QTyr5NecNNTneyHjZy6hp_LY9pw/s128-c0x00000000-cc-rp-mo/photo.jpg",
                                            "relativeTimeDescription": "3 weeks ago"
                                        },
                                        {
                                            "language": "en",
                                            "rating": 5,
                                            "text": "This Starbucks is my favorite place to grab and afternoon pick me up when I’m dragging a bit. The service here is very quick, even when the line is long. All of the baristas that work here are friendly and very professional to interact with.",
                                            "time": 1521923820,
                                            "authorName": "David Brooks",
                                            "authorUrl": "https://www.google.com/maps/contrib/111132837721891329196/reviews",
                                            "profilePhotoUrl": "https://lh3.googleusercontent.com/-u8P7AHb4SGk/AAAAAAAAAAI/AAAAAAAAAAA/AB6qoq1lXNbDpIe7Rc5opS6haOJ2u9qnWA/s128-c0x00000000-cc-rp-mo-ba3/photo.jpg",
                                            "relativeTimeDescription": "3 months ago"
                                        },
                                        {
                                            "language": "en",
                                            "rating": 2,
                                            "text": "Peets and Crema are worthy starbucks blows",
                                            "time": 1528611347,
                                            "authorName": "J. Paul Armstrong",
                                            "authorUrl": "https://www.google.com/maps/contrib/110149227504971760591/reviews",
                                            "profilePhotoUrl": "https://lh5.googleusercontent.com/-9tcLScLkyNE/AAAAAAAAAAI/AAAAAAAADgY/2tFXg7MMvXA/s128-c0x00000000-cc-rp-mo-ba2/photo.jpg",
                                            "relativeTimeDescription": "3 weeks ago"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                ]
            }
        }
    ]
}