More search functionality
This commit is contained in:
parent
5d0de8520b
commit
1c46a65c84
25 changed files with 962 additions and 846 deletions
|
@ -1,6 +1,7 @@
|
|||
import { BBox } from "../BBox"
|
||||
import { Feature, Geometry } from "geojson"
|
||||
import { DefaultPinIcon } from "../../Models/Constants"
|
||||
import { Store } from "../UIEventSource"
|
||||
|
||||
export type GeocodingCategory = "coordinate" | "city" | "house" | "street" | "locality" | "country" | "train_station" | "county" | "airport"
|
||||
|
||||
|
@ -42,7 +43,7 @@ export default interface GeocodingProvider {
|
|||
* @param query
|
||||
* @param options
|
||||
*/
|
||||
suggest?(query: string, options?: GeocodingOptions): Promise<GeoCodeResult[]>
|
||||
suggest?(query: string, options?: GeocodingOptions): Store<GeoCodeResult[]>
|
||||
}
|
||||
|
||||
export type ReverseGeocodingResult = Feature<Geometry,{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue