HomeAge Verification HeadlessAI Services for TerminalsAge Estimation VerifySupportTrust APIIdentity Verification LivenessDigital IDIdentity verificationDigital ID MigrationDBS RTWDigital IDDBS/RTW portaleSignaturesAge verificationAge estimationIn-Branch VerificationAge Estimation v2idv-portal-errorsIdentity ProfilesVerifiable Credentialssandbox-betaIdentity Verification APIAI Services APITrust APIProof of Age (PoA) API
Digital ID
v9.0
Document Attributes
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Location constraint
AI Tools
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
Adding an extension to a scenario adds some enhanced behaviour to the Yoti app when scanning a QR code.
This extension allows the integrator to provide an expected location area where the device should be when doing the share. During the share completion the location information in the QR code are used to validate the device location. Given the accuracy of the device location, the expected location area must include a maximum uncertainty radius, above which the share will be rejected. The share will be cancelled if the device is not within the expected location.
Javascript
Java
const locationExtension = new Yoti.LocationConstraintExtensionBuilder() .withLatitude(51.5074) .withLongitude(-0.1278) .withRadius(6000) .withMaxUncertainty(6000) .build();| Parameter | Units | Description |
|---|---|---|
| Latitude | decimal degrees | Device's latitude |
| Longitude | decimal degrees | Device's longitude |
| Radius | meters | Radius of the circle centred on the specified location coordinates where the device is allowed to perform the share. (Default 150) |
| Max Uncertainty | meters | Maximum acceptable length of the radius representing the area of uncertainty associated with the device location coordinates. (Default 150) |
Javascript
const dynamicScenario = new Yoti.DynamicScenarioBuilder() .withCallbackEndpoint("/your-callback") .withPolicy(dynamicPolicy) //if using an extension .withExtension(Locationextension) .build();Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
Quick startGot a question? Contact us here.
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message