Skip to content

Commit

Permalink
doc: how to add a new search provider
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrossel committed Nov 4, 2024
1 parent 7a4bcce commit 9576c41
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/interfaces/search/ingv-search-provider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import type {Geometry} from 'geojson';

/**
* To add a providers, you need to:
* 1. Create a new provider file in src/plugins/search/providers/ that implements the INGVSearchProvider interface
* 2. Add the provider to the getProvider function in src/plugins/search/ngv-search-providers.ts
* 3. Add the provider to the IngvSearchContext in src/interfaces/search/ingv-search-context.ts
*/

export interface INGVSearchResult {
title: string;

Expand Down

0 comments on commit 9576c41

Please sign in to comment.