import { GooglePlaceNearbyAPIResponse, GooglePlaceTextSearchAPIResponse } from "./models.js"; export declare class GooglePlaceAPI { private GOOGLE_PLACE_API_KEY; constructor(key: string); /** * Nearby Search * @param latitude // ex. 37.7937 * @param longitude // ex. -122.3965 * @param radius // ex. 500.0 * @param includedTypes : 50개 넘으면 에러남 * @param excludedTypes * @param includedPrimaryTypes * @param excludedPrimaryTypes * @param pageToken * pageToken 처리 관련해서 아직 API 문서에 내용이 없음 * https://developers.google.com/maps/documentation/places/web-service/nearby-search?hl=ko * @returns */ searchNearby(latitude: number, longitude: number, radius: number, includedTypes?: string[], excludedTypes?: string[], includedPrimaryTypes?: string[], excludedPrimaryTypes?: string[], pageToken?: string): Promise; /** * Text Search * @param text // ex. 서울여행 * @param includedType // ex. "bar" 50개 넘으면 에러남 * @param pageToken * 아직 API 문서에 내용이 없음 * https://developers.google.com/maps/documentation/places/web-service/text-search?hl=ko * @returns */ searchByText(text: string, includedType?: string | null, pageToken?: string): Promise; /** * Text Search with Location * @param text * @param includedType * @param latitude * @param longitude * @param radius * @param pageToken * 아직 API 문서에 내용이 없음 * https://developers.google.com/maps/documentation/places/web-service/text-search?hl=ko * @returns */ searchByTextWithLocation(text: string, includedType?: string | null, latitude?: number, longitude?: number, radius?: number, pageToken?: string): Promise; /** * Text Search with Location Restriction * @param text * @param includedType * @param lowLatitude * @param lowLongitude * @param highLatitude * @param highLongitude * @param pageToken * 아직 API 문서에 내용이 없음 * https://developers.google.com/maps/documentation/places/web-service/text-search?hl=ko * @returns */ searchByTextWithLocationRestriction(text: string, includedType?: string | null, lowLatitude?: number, lowLongitude?: number, highLatitude?: number, highLongitude?: number, pageToken?: string): Promise; /** * Text Search for Check Place IDs * @param text // ex. 서울여행 * @param includedType // ex. "bar" 50개 넘으면 에러남 * @param pageToken * 아직 API 문서에 내용이 없음 * https://developers.google.com/maps/documentation/places/web-service/text-search?hl=ko * @returns */ searchPlaceIDsByText(text: string, includedType?: string | null, pageToken?: string): Promise; /** * 장소 상세 정보 * @param placeId * @returns */ getPlaceDetails(placeId: string): Promise; }