import { BaseClient, RequestOptions } from './base-client'; import { ForwardGeocodeResponse, ReverseGeocodeResponse, MapRouteResponse } from './model'; /** * Welcome to the Key Telematics Fleet API specification. This document outlines the REST routes and data structures returned by the API and offers examples of usage. The API publishes a [swagger](https://swagger.io/) specification that can be used to [generate a client library](https://github.com/swagger-api/swagger-codegen) for your language of choice. The latest swagger file is available for download from the following link: [https://api.eu1.kt1.io/fleet/v2/swagger.json](https://api.eu1.kt1.io/fleet/v2/swagger.json) * @class MapClient * @param {(string)} [url] - The URL of the API endpoint. */ export declare class MapClient extends BaseClient { /** * Perform a free text search against map addresses and zones. * @method * @name MapClient#geocodeForward * @param {string} client - The client UUID for whom geocoding is being done * @param {string} query - The free text query you'd like to search for */ geocodeForward(client: string, query: string, $options?: RequestOptions): Promise; /** * Perform a reverse geocode text search against map addresses. * @method * @name MapClient#geocodeReverse * @param {string} client - The client UUID for whom geocoding is being done * @param {number} lat - The latitude to search for * @param {number} lon - The longitude to search for */ geocodeReverse(client: string, lat: number, lon: number, $options?: RequestOptions): Promise; /** * Route between two points on a map. * @method * @name MapClient#getRoute * @param {string} client - The client UUID for whom geocoding is being done * @param {string} strategy - The routing strategy to employ while calculating the route, in the format `fastest,longest` * @param {string} coords - The coordinate pairs to route between in the format `[lon,lat],[lon,lat]` * @param {string} src - Welcome to the Key Telematics Fleet API specification. This document outlines the REST routes and data structures returned by the API and offers examples of usage. The API publishes a [swagger](https://swagger.io/) specification that can be used to [generate a client library](https://github.com/swagger-api/swagger-codegen) for your language of choice. The latest swagger file is available for download from the following link: [https://api.eu1.kt1.io/fleet/v2/swagger.json](https://api.eu1.kt1.io/fleet/v2/swagger.json) */ getRoute(client: string, strategy: string, coords: string, src?: string, $options?: RequestOptions): Promise; }