Uh oh! We couldn’t find any match.

Please try other search keywords.

Bixby Developer Center

Guides

Contact/Geo Search

This sample capsule highlights the following:

You can test this sample capsule in the Simulator with the following utterance:

Find me a ride

This is equivalent to this intent:

intent{
goal: FindRideShare
}

Getting User Permissions

In order to access the user's current location and the user's profile information, including contacts, you need to ask for permission to access that information:

permissions {
user-profile-access
}

This automatically creates a prompt, in which the user can Allow or Deny the request for that information.

Using Geo

The geo library capsule is used to create namedPoint concepts, namely the DestinationPoint and SourcePoint models used to determine the starting and ending point of the shared ride. Both concept models use role-of(geo.NamedPoint), so that it has the properties needed to be a geographical point of interest.

In order to do this, you need to import the geo capsule:

  capsule-imports {
import (viv.contact) { as (contact) version (2.5125.7)}
import (viv.geo) { as (geo) version-from (contact)}
}

Notice that the viv.geo capsule imports with the version-from the viv.contact capsule, which ensures that capsule versions are compatible with each other.

Auto-Complete with Geo and Contact

This capsule also includes the DestinationPoint_Input.view.bxb file, which uses auto-complete, coupled with contact and geo to automatically suggest locations for the DestinationPoint using the contact.Autosuggest goal. Because contact relies on geo for the Address property, the contact chosen can then be passed back as the DestinationPoint.