Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SearchForTextResult

import type { SearchForTextResult } from "https://aws-api.deno.dev/v0.3/services/location.ts?docs=full";

Contains a search result from a text search query that is run on a place index resource.

interface SearchForTextResult {
Distance?: number | null;
Place: Place;
Relevance?: number | null;
}

§Properties

§
Distance?: number | null
[src]

The distance in meters of a great-circle arc between the bias position specified and the result. Distance will be returned only if a bias position was specified in the query.

Note: A great-circle arc is the shortest path on a sphere, in this case the Earth. This returns the shortest distance between two locations.

§
Place: Place
[src]

Details about the search result, such as its address and position.

§
Relevance?: number | null
[src]

The relative confidence in the match for a result among the results returned. For example, if more fields for an address match (including house number, street, city, country/region, and postal code), the relevance score is closer to 1.

Returned only when the partner selected is Esri.