/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { captureFind } from "../funcs/captureFind.js"; import { captureGeoLocation } from "../funcs/captureGeoLocation.js"; import { captureRetrieve } from "../funcs/captureRetrieve.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Capture extends ClientSDK { /** * Capture_Interactive_Find * * @remarks * Uses a text search to find addresses and places. Note this does not return formatted addresses, and repeated calls to this service may be required to drill-down through results until an address ID is returned. The address ID should then be passed into the Retrieve service to obtain a fully formatted address. */ async find( request: operations.CaptureInteractiveFindRequest, options?: RequestOptions, ): Promise { return unwrapAsync(captureFind( this, request, options, )); } /** * Capture_Interactive_Retrieve * * @remarks * Returns the full address details based on the Id. */ async retrieve( request: operations.CaptureInteractiveRetrieveRequest, options?: RequestOptions, ): Promise { return unwrapAsync(captureRetrieve( this, request, options, )); } /** * Capture_Interactive_GeoLocation * * @remarks * A valuable optional add-on for Capture customers, this Reverse GeoLocationservice takes a latitude longitude point and returns addresses that are within a specified radius. This must be followed by a Retrieve to obtain a fully formatted address. */ async geoLocation( request: operations.CaptureInteractiveGeoLocationRequest, options?: RequestOptions, ): Promise { return unwrapAsync(captureGeoLocation( this, request, options, )); } }