UNPKG

mcp-openweathermap

Version:
23 lines 699 B
/** * Parse location input to determine if it's coordinates or a city name */ export interface ParsedLocation { type: 'coordinates' | 'city'; latitude?: number; longitude?: number; city?: string; } /** * Parse a location string into coordinates or city name * Supports formats: * - "New York" (city name) * - "New York, US" (city with country code) * - "40.7128,-74.0060" (coordinates) * - "lat:40.7128,lon:-74.0060" (explicit coordinates) */ export declare function parseLocation(location: string): ParsedLocation; /** * Format location for display */ export declare function formatLocation(location: ParsedLocation): string; //# sourceMappingURL=location-parser.d.ts.map