expo-osm-sdk
Version:
OpenStreetMap component for React Native with Expo
41 lines • 1.57 kB
TypeScript
import { SearchLocation, Coordinate } from '../types';
/**
* Search Convenience Utilities
*
* Simplified functions for common search operations
*/
/**
* Quick search with sensible defaults
* Perfect for simple "search and fly to" functionality
*/
export declare const quickSearch: (query: string) => Promise<SearchLocation | null>;
/**
* Search nearby places of a specific type
*
* @param center - Center coordinate to search around
* @param query - What to search for (e.g., "restaurant", "hotel", "gas station")
* @param radiusKm - Search radius in kilometers (approximate)
*/
export declare const searchNearby: (center: Coordinate, query: string, radiusKm?: number) => Promise<SearchLocation[]>;
/**
* Get a human-readable address from coordinates
* Simplified version of reverse geocoding
*/
export declare const getAddressFromCoordinates: (coordinate: Coordinate) => Promise<string | null>;
/**
* Search for points of interest (POI) by category
*
* @param center - Center coordinate
* @param category - POI category (restaurant, hotel, hospital, etc.)
* @param radiusKm - Search radius
*/
export declare const searchPOI: (center: Coordinate, category: string, radiusKm?: number) => Promise<SearchLocation[]>;
/**
* Smart search that handles different types of queries
* - Coordinates: "40.7128, -74.0060"
* - Addresses: "123 Main St, New York"
* - Places: "Times Square"
* - POI: "restaurants near Central Park"
*/
export declare const smartSearch: (query: string) => Promise<SearchLocation[]>;
//# sourceMappingURL=searchHelpers.d.ts.map