@mapbox/search-js-core
Advanced tools
Comparing version 1.0.0-beta.7 to 1.0.0-beta.8
import { LngLatBoundsLike } from '../LngLatBounds'; | ||
/** | ||
* @typedef AutofillMatchCodeConfidence | ||
*/ | ||
export declare enum AutofillMatchCodeConfidence { | ||
/** | ||
* An exact match. | ||
*/ | ||
exact = "exact", | ||
/** | ||
* High confidence of a match. | ||
*/ | ||
high = "high", | ||
/** | ||
* Medium confidence of a match. | ||
*/ | ||
medium = "medium", | ||
/** | ||
* Low confidence of a match. | ||
*/ | ||
low = "low" | ||
@@ -11,11 +26,37 @@ } | ||
* Includes boolean flags denoting matches for each address sub-component. | ||
* | ||
* @typedef AutofillMatchCode | ||
*/ | ||
export interface AutofillMatchCode { | ||
/** | ||
* A measure of confidence that the returned feature suggestion matches the intended address, based on the search text provided. | ||
*/ | ||
confidence: AutofillMatchCodeConfidence; | ||
/** | ||
* True if the confidence value is "exact". | ||
*/ | ||
exact_match: boolean; | ||
/** | ||
* True if the house number component was matched. | ||
*/ | ||
house_number: boolean; | ||
/** | ||
* True if the street component was matched. | ||
*/ | ||
street: boolean; | ||
/** | ||
* True if the postcode was matched. | ||
*/ | ||
postcode: boolean; | ||
/** | ||
* True if the place component was matched. | ||
*/ | ||
place: boolean; | ||
/** | ||
* True if the region component was matched. | ||
*/ | ||
region?: boolean; | ||
/** | ||
* True if the locality component was matched. | ||
*/ | ||
locality?: boolean; | ||
@@ -22,0 +63,0 @@ } |
{ | ||
"name": "@mapbox/search-js-core", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-beta.8", | ||
"description": "Platform agnostic wrappers for the Search API and Geocoding API.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1482577
4228
1
19