/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { geocodingUKFind } from "../funcs/geocodingUKFind.js"; import { geocodingUKGeocode } from "../funcs/geocodingUKGeocode.js"; import { geocodingUKRetrieve } from "../funcs/geocodingUKRetrieve.js"; import { geocodingUKRetrieveNearestPlaces } from "../funcs/geocodingUKRetrieveNearestPlaces.js"; import { geocodingUKReverseGeocode } from "../funcs/geocodingUKReverseGeocode.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 GeocodingUK extends ClientSDK { /** * Geocoding_UK_Find * * @remarks * Finds locations matching the given input. Supports UK only. */ async find( request: operations.GeocodingUKFindRequest, options?: RequestOptions, ): Promise { return unwrapAsync(geocodingUKFind( this, request, options, )); } /** * Geocoding_UK_Geocode * * @remarks * Returns the OS easting + northing along with WGS84 latitude and longitude for the given postcode. Supports UK only. */ async geocode( request: operations.GeocodingUKGeocodeRequest, options?: RequestOptions, ): Promise { return unwrapAsync(geocodingUKGeocode( this, request, options, )); } /** * Geocoding_UK_Retrieve * * @remarks * Returns the OS easting + northing along with WGS84 latitude and longitude for the given location. Supports UK only. */ async retrieve( request: operations.GeocodingUKRetrieveRequest, options?: RequestOptions, ): Promise { return unwrapAsync(geocodingUKRetrieve( this, request, options, )); } /** * Geocoding_UK_RetrieveNearestPlaces * * @remarks * Calculates the nearest places of interest of a given category to a given location. */ async retrieveNearestPlaces( request: operations.GeocodingUKRetrieveNearestPlacesRequest, options?: RequestOptions, ): Promise { return unwrapAsync(geocodingUKRetrieveNearestPlaces( this, request, options, )); } /** * Geocoding_UK_ReverseGeocode * * @remarks * Returns the nearest address or location to the given coordinates. Currently only supports the UK. */ async reverseGeocode( request: operations.GeocodingUKReverseGeocodeRequest, options?: RequestOptions, ): Promise { return unwrapAsync(geocodingUKReverseGeocode( this, request, options, )); } }