strapi-plugin-map-box
Version:
34 lines (33 loc) • 744 B
TypeScript
import type { Core } from '@strapi/strapi';
export interface MapboxFeature {
id: string;
type: string;
place_type: string[];
relevance: number;
properties: {
mapbox_id: string;
wikidata?: string;
};
text: string;
place_name: string;
center: [number, number];
geometry: {
type: string;
coordinates: [number, number];
};
}
export interface MapboxResponse {
type: string;
query: string[];
features: MapboxFeature[];
attribution: string;
}
declare const service: ({ strapi }: {
strapi: Core.Strapi;
}) => {
locationSearch(query: string): Promise<MapboxResponse | {
error: string;
features: any[];
}>;
};
export default service;