@dangahagan/weather-mcp 1.36.8 → 1.36.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/services/nominatim.d.ts +6 -30
- package/dist/services/nominatim.d.ts.map +1 -1
- package/dist/services/nominatim.js +9 -151
- package/dist/services/nominatim.js.map +1 -1
- package/dist/types/nominatim.d.ts +2 -63
- package/dist/types/nominatim.d.ts.map +1 -1
- package/dist/types/nominatim.js +2 -2
- package/dist/utils/timezone.d.ts +3 -3
- package/dist/utils/timezone.js +3 -3
- package/dist/utils/timezoneOverrides.d.ts +12 -2
- package/dist/utils/timezoneOverrides.d.ts.map +1 -1
- package/dist/utils/timezoneOverrides.js +13 -2
- package/dist/utils/timezoneOverrides.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@dangahagan/weather-mcp)
|
|
4
4
|
[](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.dgahagan/weather-mcp)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
-
[](./docs/testing/TEST_SUITE_README.md)
|
|
7
7
|
[](https://nodejs.org)
|
|
8
8
|
|
|
9
9
|
**Give your AI assistant real weather data — 17 tools, zero API keys, zero signup, zero cost.**
|
|
@@ -58,7 +58,7 @@ Choose this one if you want:
|
|
|
58
58
|
|
|
59
59
|
- **Genuinely free** — every data source is a free public API. No trial that expires, no credit card, no rate-limited "free tier" bait.
|
|
60
60
|
- **No API keys** — install to first forecast in under a minute. Nothing to configure, nothing to leak into a repo. ([Four optional keys](#optional-api-keys) add extras if you want them; the default configuration needs none.)
|
|
61
|
-
- **Fully open source** — MIT licensed, readable TypeScript, 6,
|
|
61
|
+
- **Fully open source** — MIT licensed, readable TypeScript, 6,352 tests. Audit it, fork it, fix it.
|
|
62
62
|
- **Privacy-respecting** — your queries go directly from your machine to public weather APIs. No middleman server, and no telemetry unless you opt in.
|
|
63
63
|
- **Breadth** — 17 tools covering weather, safety hazards (lightning, floods, wildfires), marine conditions, air quality, and historical data back to 1940. Most weather MCPs stop at forecasts.
|
|
64
64
|
|
|
@@ -400,7 +400,7 @@ npm run build # Compile TypeScript
|
|
|
400
400
|
npm run dev # Run in development mode
|
|
401
401
|
npm test # Offline tests: unit + integration (what CI runs)
|
|
402
402
|
npm run test:live # Live-network tests against the real upstreams, by hand
|
|
403
|
-
npm test && npm run test:live # Run all 6,
|
|
403
|
+
npm test && npm run test:live # Run all 6,352 tests
|
|
404
404
|
npm run test:coverage # Coverage report
|
|
405
405
|
npm run audit # Dependency vulnerability scan
|
|
406
406
|
```
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Documentation: https://nominatim.org/release-docs/latest/api/
|
|
2
|
+
* Reverse client for the Nominatim API, country level only.
|
|
3
|
+
* Documentation: https://nominatim.org/release-docs/latest/api/Reverse/
|
|
4
4
|
*
|
|
5
|
-
* Nominatim is the geocoding service powering OpenStreetMap.
|
|
6
|
-
*
|
|
5
|
+
* Nominatim is the geocoding service powering OpenStreetMap. This service
|
|
6
|
+
* resolves a coordinate to a country code. Forward (name to coordinates)
|
|
7
|
+
* search lives in `GeocodingService` (`geocoding.ts`), whose Nominatim
|
|
8
|
+
* provider shares this service's request spacer.
|
|
7
9
|
*
|
|
8
10
|
* Usage Policy: https://operations.osmfoundation.org/policies/nominatim/
|
|
9
11
|
* - Maximum 1 request per second
|
|
@@ -17,7 +19,6 @@
|
|
|
17
19
|
* Revisit if a Nominatim 429 or 403 appears on a host running more than one
|
|
18
20
|
* instance.
|
|
19
21
|
*/
|
|
20
|
-
import type { MappedGeocodingResponse } from '../types/nominatim.js';
|
|
21
22
|
import { RequestSpacer } from '../utils/requestSpacer.js';
|
|
22
23
|
/** 1 request per second (Nominatim usage policy). */
|
|
23
24
|
export declare const NOMINATIM_MIN_INTERVAL_MS = 1000;
|
|
@@ -31,7 +32,6 @@ export declare class NominatimService {
|
|
|
31
32
|
private client;
|
|
32
33
|
private cache;
|
|
33
34
|
private readonly spacer;
|
|
34
|
-
private readonly searchInFlight;
|
|
35
35
|
private readonly reverseInFlight;
|
|
36
36
|
constructor(config?: NominatimServiceConfig);
|
|
37
37
|
/**
|
|
@@ -47,30 +47,6 @@ export declare class NominatimService {
|
|
|
47
47
|
* @private
|
|
48
48
|
*/
|
|
49
49
|
private enforceRateLimit;
|
|
50
|
-
/**
|
|
51
|
-
* Map Nominatim location to GeocodingLocation format for compatibility
|
|
52
|
-
* @private
|
|
53
|
-
*/
|
|
54
|
-
private mapLocation;
|
|
55
|
-
/**
|
|
56
|
-
* Map OSM place types to GeoNames-style feature codes
|
|
57
|
-
* @private
|
|
58
|
-
*/
|
|
59
|
-
private mapFeatureCode;
|
|
60
|
-
/**
|
|
61
|
-
* Search for locations by name using Nominatim
|
|
62
|
-
*
|
|
63
|
-
* @param query - Location name to search for (e.g., "Paris", "New York, NY", "Tokyo")
|
|
64
|
-
* @param limit - Maximum number of results to return (default: 5, max: 50)
|
|
65
|
-
* @param language - Language for results (default: 'en')
|
|
66
|
-
* @returns Geocoding results with coordinates and metadata
|
|
67
|
-
*/
|
|
68
|
-
searchLocation(query: string, limit?: number, language?: string): Promise<MappedGeocodingResponse>;
|
|
69
|
-
/**
|
|
70
|
-
* The network half of `searchLocation`, run once per in-flight key.
|
|
71
|
-
* @private
|
|
72
|
-
*/
|
|
73
|
-
private fetchSearch;
|
|
74
50
|
/**
|
|
75
51
|
* Resolve the country at a coordinate via Nominatim reverse geocoding
|
|
76
52
|
* (country-level only — `zoom=3`, the privacy-minimal request for this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nominatim.d.ts","sourceRoot":"","sources":["../../src/services/nominatim.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"nominatim.d.ts","sourceRoot":"","sources":["../../src/services/nominatim.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAWH,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAS1D,qDAAqD;AACrD,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAgB9C,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6FAA6F;IAC7F,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAGvC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA6C;IAE7E,YAAY,MAAM,GAAE,sBAA2B,EA2B9C;IAED;;;OAGG;YACW,WAAW;IAoHzB;;;;;;OAMG;YACW,gBAAgB;IAU9B;;;;;;;;;;;;;;OAcG;IACG,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAyBhF;IAED;;;OAGG;YACW,mBAAmB;IA8BjC;;OAEG;IACH,aAAa,2CAEZ;IAED;;OAEG;IACH,UAAU,IAAI,IAAI,CAEjB;CACF"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Documentation: https://nominatim.org/release-docs/latest/api/
|
|
2
|
+
* Reverse client for the Nominatim API, country level only.
|
|
3
|
+
* Documentation: https://nominatim.org/release-docs/latest/api/Reverse/
|
|
4
4
|
*
|
|
5
|
-
* Nominatim is the geocoding service powering OpenStreetMap.
|
|
6
|
-
*
|
|
5
|
+
* Nominatim is the geocoding service powering OpenStreetMap. This service
|
|
6
|
+
* resolves a coordinate to a country code. Forward (name to coordinates)
|
|
7
|
+
* search lives in `GeocodingService` (`geocoding.ts`), whose Nominatim
|
|
8
|
+
* provider shares this service's request spacer.
|
|
7
9
|
*
|
|
8
10
|
* Usage Policy: https://operations.osmfoundation.org/policies/nominatim/
|
|
9
11
|
* - Maximum 1 request per second
|
|
@@ -44,7 +46,6 @@ export class NominatimService {
|
|
|
44
46
|
spacer;
|
|
45
47
|
// Single-flight: concurrent lookups for one cache key share one request.
|
|
46
48
|
// Entries are deleted in `finally`, so a rejected pull is never kept.
|
|
47
|
-
searchInFlight = new Map();
|
|
48
49
|
reverseInFlight = new Map();
|
|
49
50
|
constructor(config = {}) {
|
|
50
51
|
const { baseURL = 'https://nominatim.openstreetmap.org', timeout = CacheConfig.apiTimeoutMs } = config;
|
|
@@ -86,9 +87,11 @@ export class NominatimService {
|
|
|
86
87
|
const data = error.response.data;
|
|
87
88
|
// Bad request
|
|
88
89
|
if (status === 400) {
|
|
90
|
+
// `data.error` is upstream text about the request and can quote what was sent (the
|
|
91
|
+
// coordinates), so default logs carry only the fixed fields; LOG_PII adds it.
|
|
89
92
|
logger.warn('Invalid request parameters', {
|
|
90
93
|
service: 'Nominatim',
|
|
91
|
-
error: data.error,
|
|
94
|
+
...(isPiiLoggingEnabled() ? { error: data.error } : {}),
|
|
92
95
|
securityEvent: true
|
|
93
96
|
});
|
|
94
97
|
throw new InvalidLocationError('Nominatim', `${data.error || 'Invalid request parameters'}\n\n` +
|
|
@@ -151,151 +154,6 @@ export class NominatimService {
|
|
|
151
154
|
});
|
|
152
155
|
});
|
|
153
156
|
}
|
|
154
|
-
/**
|
|
155
|
-
* Map Nominatim location to GeocodingLocation format for compatibility
|
|
156
|
-
* @private
|
|
157
|
-
*/
|
|
158
|
-
mapLocation(location) {
|
|
159
|
-
// Determine the best "name" for the location
|
|
160
|
-
let name = location.display_name.split(',')[0].trim();
|
|
161
|
-
// If we have address details, use the most specific place name
|
|
162
|
-
if (location.address) {
|
|
163
|
-
name = location.address.village
|
|
164
|
-
|| location.address.town
|
|
165
|
-
|| location.address.city
|
|
166
|
-
|| location.address.municipality
|
|
167
|
-
|| location.address.suburb
|
|
168
|
-
|| name;
|
|
169
|
-
}
|
|
170
|
-
// Map Nominatim OSM type to GeoNames-style feature code
|
|
171
|
-
const featureCode = this.mapFeatureCode(location.type);
|
|
172
|
-
return {
|
|
173
|
-
id: location.place_id,
|
|
174
|
-
name,
|
|
175
|
-
latitude: parseFloat(location.lat),
|
|
176
|
-
longitude: parseFloat(location.lon),
|
|
177
|
-
feature_code: featureCode,
|
|
178
|
-
country_code: location.address?.country_code?.toUpperCase(),
|
|
179
|
-
country: location.address?.country,
|
|
180
|
-
admin1: location.address?.state,
|
|
181
|
-
admin2: location.address?.county,
|
|
182
|
-
admin3: location.address?.suburb,
|
|
183
|
-
admin4: location.address?.village || location.address?.town
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Map OSM place types to GeoNames-style feature codes
|
|
188
|
-
* @private
|
|
189
|
-
*/
|
|
190
|
-
mapFeatureCode(osmType) {
|
|
191
|
-
if (!osmType)
|
|
192
|
-
return undefined;
|
|
193
|
-
const typeMap = {
|
|
194
|
-
'city': 'PPLC',
|
|
195
|
-
'town': 'PPL',
|
|
196
|
-
'village': 'PPL',
|
|
197
|
-
'hamlet': 'PPL',
|
|
198
|
-
'suburb': 'PPLX',
|
|
199
|
-
'administrative': 'ADM1',
|
|
200
|
-
'island': 'ISL',
|
|
201
|
-
'mountain': 'MT',
|
|
202
|
-
'lake': 'LAKE',
|
|
203
|
-
'airport': 'AIRP',
|
|
204
|
-
'park': 'PRK'
|
|
205
|
-
};
|
|
206
|
-
return typeMap[osmType] || 'PPL'; // Default to populated place
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Search for locations by name using Nominatim
|
|
210
|
-
*
|
|
211
|
-
* @param query - Location name to search for (e.g., "Paris", "New York, NY", "Tokyo")
|
|
212
|
-
* @param limit - Maximum number of results to return (default: 5, max: 50)
|
|
213
|
-
* @param language - Language for results (default: 'en')
|
|
214
|
-
* @returns Geocoding results with coordinates and metadata
|
|
215
|
-
*/
|
|
216
|
-
async searchLocation(query, limit = 5, language = 'en') {
|
|
217
|
-
if (!query || query.trim().length === 0) {
|
|
218
|
-
throw new InvalidLocationError('Nominatim', 'Search query cannot be empty');
|
|
219
|
-
}
|
|
220
|
-
if (query.trim().length === 1) {
|
|
221
|
-
throw new InvalidLocationError('Nominatim', 'Search query must be at least 2 characters long');
|
|
222
|
-
}
|
|
223
|
-
// Validate limit (Nominatim recommends max 50)
|
|
224
|
-
if (limit < 1 || limit > 50) {
|
|
225
|
-
throw new InvalidLocationError('Nominatim', 'Limit must be between 1 and 50');
|
|
226
|
-
}
|
|
227
|
-
const cacheKey = Cache.generateKey('nominatim-geocoding', query, limit, language);
|
|
228
|
-
// Check cache first
|
|
229
|
-
if (CacheConfig.enabled) {
|
|
230
|
-
const cached = this.cache.get(cacheKey);
|
|
231
|
-
if (cached) {
|
|
232
|
-
logger.info('Nominatim cache hit', isPiiLoggingEnabled() ? { query } : undefined);
|
|
233
|
-
return cached;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
// No await between this check and the publish below (G20). The pull is
|
|
237
|
-
// started inside `.then` so the memo is published before its body runs (G113).
|
|
238
|
-
const pending = this.searchInFlight.get(cacheKey);
|
|
239
|
-
if (pending)
|
|
240
|
-
return pending;
|
|
241
|
-
const pull = Promise.resolve()
|
|
242
|
-
.then(() => this.fetchSearch(query, limit, language, cacheKey))
|
|
243
|
-
.finally(() => { this.searchInFlight.delete(cacheKey); });
|
|
244
|
-
this.searchInFlight.set(cacheKey, pull);
|
|
245
|
-
return pull;
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* The network half of `searchLocation`, run once per in-flight key.
|
|
249
|
-
* @private
|
|
250
|
-
*/
|
|
251
|
-
async fetchSearch(query, limit, language, cacheKey) {
|
|
252
|
-
if (CacheConfig.enabled) {
|
|
253
|
-
// Enforce rate limiting before making request
|
|
254
|
-
await this.enforceRateLimit();
|
|
255
|
-
const startTime = Date.now();
|
|
256
|
-
const params = {
|
|
257
|
-
q: query.trim(),
|
|
258
|
-
format: 'json',
|
|
259
|
-
limit,
|
|
260
|
-
addressdetails: 1,
|
|
261
|
-
'accept-language': language
|
|
262
|
-
};
|
|
263
|
-
logger.info('Nominatim API request', { ...(isPiiLoggingEnabled() ? { query } : {}), limit });
|
|
264
|
-
const response = await this.client.get('/search', { params });
|
|
265
|
-
const generationTime = Date.now() - startTime;
|
|
266
|
-
// Map Nominatim results to GeocodingResponse format
|
|
267
|
-
const mappedResults = response.data.map((loc) => this.mapLocation(loc));
|
|
268
|
-
const result = {
|
|
269
|
-
results: mappedResults,
|
|
270
|
-
generationtime_ms: generationTime
|
|
271
|
-
};
|
|
272
|
-
// Cache for 30 days (locations don't change frequently)
|
|
273
|
-
this.cache.set(cacheKey, result, 30 * 24 * 60 * 60 * 1000);
|
|
274
|
-
logger.info('Nominatim search completed', {
|
|
275
|
-
...(isPiiLoggingEnabled() ? { query } : {}),
|
|
276
|
-
resultCount: mappedResults.length,
|
|
277
|
-
generationTimeMs: generationTime
|
|
278
|
-
});
|
|
279
|
-
return result;
|
|
280
|
-
}
|
|
281
|
-
// No caching - still enforce rate limiting
|
|
282
|
-
await this.enforceRateLimit();
|
|
283
|
-
const startTime = Date.now();
|
|
284
|
-
const params = {
|
|
285
|
-
q: query.trim(),
|
|
286
|
-
format: 'json',
|
|
287
|
-
limit,
|
|
288
|
-
addressdetails: 1,
|
|
289
|
-
'accept-language': language
|
|
290
|
-
};
|
|
291
|
-
const response = await this.client.get('/search', { params });
|
|
292
|
-
const generationTime = Date.now() - startTime;
|
|
293
|
-
const mappedResults = response.data.map((loc) => this.mapLocation(loc));
|
|
294
|
-
return {
|
|
295
|
-
results: mappedResults,
|
|
296
|
-
generationtime_ms: generationTime
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
157
|
/**
|
|
300
158
|
* Resolve the country at a coordinate via Nominatim reverse geocoding
|
|
301
159
|
* (country-level only — `zoom=3`, the privacy-minimal request for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F,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;QAE3B,MAAM,WAAW,GACf,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,OAAO,EAAE,YAAY;YACvC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE;YACzC,CAAC,CAAC,IAAI,CAAC;QAEX,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;YACxB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QACxE,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,UAAU;QACR,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -1,74 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* TypeScript type definitions for Nominatim
|
|
3
|
-
* API Documentation: https://nominatim.org/release-docs/latest/api/
|
|
2
|
+
* TypeScript type definitions for the Nominatim error and Reverse API responses
|
|
3
|
+
* API Documentation: https://nominatim.org/release-docs/latest/api/Reverse/
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* Address components from Nominatim response
|
|
7
|
-
*/
|
|
8
|
-
export interface NominatimAddress {
|
|
9
|
-
house_number?: string;
|
|
10
|
-
road?: string;
|
|
11
|
-
suburb?: string;
|
|
12
|
-
village?: string;
|
|
13
|
-
town?: string;
|
|
14
|
-
city?: string;
|
|
15
|
-
municipality?: string;
|
|
16
|
-
county?: string;
|
|
17
|
-
state?: string;
|
|
18
|
-
postcode?: string;
|
|
19
|
-
country?: string;
|
|
20
|
-
country_code?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Single location result from Nominatim Search API
|
|
24
|
-
*/
|
|
25
|
-
export interface NominatimLocation {
|
|
26
|
-
place_id: number;
|
|
27
|
-
licence: string;
|
|
28
|
-
osm_type: string;
|
|
29
|
-
osm_id: number;
|
|
30
|
-
lat: string;
|
|
31
|
-
lon: string;
|
|
32
|
-
display_name: string;
|
|
33
|
-
address?: NominatimAddress;
|
|
34
|
-
boundingbox?: string[];
|
|
35
|
-
class?: string;
|
|
36
|
-
type?: string;
|
|
37
|
-
importance?: number;
|
|
38
|
-
icon?: string;
|
|
39
|
-
}
|
|
40
5
|
/**
|
|
41
6
|
* Error response from Nominatim API
|
|
42
7
|
*/
|
|
43
8
|
export interface NominatimErrorResponse {
|
|
44
9
|
error: string;
|
|
45
10
|
}
|
|
46
|
-
/**
|
|
47
|
-
* Mapped location result for compatibility with existing GeocodingLocation interface
|
|
48
|
-
*/
|
|
49
|
-
export interface MappedGeocodingLocation {
|
|
50
|
-
id: number;
|
|
51
|
-
name: string;
|
|
52
|
-
latitude: number;
|
|
53
|
-
longitude: number;
|
|
54
|
-
elevation?: number;
|
|
55
|
-
feature_code?: string;
|
|
56
|
-
country_code?: string;
|
|
57
|
-
country?: string;
|
|
58
|
-
timezone?: string;
|
|
59
|
-
population?: number;
|
|
60
|
-
admin1?: string;
|
|
61
|
-
admin2?: string;
|
|
62
|
-
admin3?: string;
|
|
63
|
-
admin4?: string;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Response format compatible with existing GeocodingResponse interface
|
|
67
|
-
*/
|
|
68
|
-
export interface MappedGeocodingResponse {
|
|
69
|
-
results?: MappedGeocodingLocation[];
|
|
70
|
-
generationtime_ms?: number;
|
|
71
|
-
}
|
|
72
11
|
/**
|
|
73
12
|
* Address fields used from the Nominatim Reverse API (jsonv2), country
|
|
74
13
|
* resolution only — a minimal subset of the full jsonv2 address shape.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nominatim.d.ts","sourceRoot":"","sources":["../../src/types/nominatim.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"nominatim.d.ts","sourceRoot":"","sources":["../../src/types/nominatim.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC"}
|
package/dist/types/nominatim.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* TypeScript type definitions for Nominatim
|
|
3
|
-
* API Documentation: https://nominatim.org/release-docs/latest/api/
|
|
2
|
+
* TypeScript type definitions for the Nominatim error and Reverse API responses
|
|
3
|
+
* API Documentation: https://nominatim.org/release-docs/latest/api/Reverse/
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
|
6
6
|
//# sourceMappingURL=nominatim.js.map
|
package/dist/utils/timezone.d.ts
CHANGED
|
@@ -39,9 +39,9 @@ export declare function getTimezoneAbbreviation(timezone: string, datetime?: Dat
|
|
|
39
39
|
* back to a coarse US longitude heuristic and finally UTC if the lookup fails
|
|
40
40
|
* (e.g. invalid coordinates).
|
|
41
41
|
*
|
|
42
|
-
* A handful of
|
|
43
|
-
* Samoa, Tokelau, St Lawrence Island)
|
|
44
|
-
* `./timezoneOverrides.ts`.
|
|
42
|
+
* A handful of areas where `tz-lookup` is wrong — a calendar day at the date line
|
|
43
|
+
* (American Samoa, Tokelau, St Lawrence Island), an hour at Umnak (Adak/Nome line) —
|
|
44
|
+
* are answered first by the override boxes in `./timezoneOverrides.ts`.
|
|
45
45
|
*
|
|
46
46
|
* @param latitude - Latitude
|
|
47
47
|
* @param longitude - Longitude
|
package/dist/utils/timezone.js
CHANGED
|
@@ -114,9 +114,9 @@ export function getTimezoneAbbreviation(timezone, datetime) {
|
|
|
114
114
|
* back to a coarse US longitude heuristic and finally UTC if the lookup fails
|
|
115
115
|
* (e.g. invalid coordinates).
|
|
116
116
|
*
|
|
117
|
-
* A handful of
|
|
118
|
-
* Samoa, Tokelau, St Lawrence Island)
|
|
119
|
-
* `./timezoneOverrides.ts`.
|
|
117
|
+
* A handful of areas where `tz-lookup` is wrong — a calendar day at the date line
|
|
118
|
+
* (American Samoa, Tokelau, St Lawrence Island), an hour at Umnak (Adak/Nome line) —
|
|
119
|
+
* are answered first by the override boxes in `./timezoneOverrides.ts`.
|
|
120
120
|
*
|
|
121
121
|
* @param latitude - Latitude
|
|
122
122
|
* @param longitude - Longitude
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Point-override boxes for the places where `tz-lookup` is a calendar day wrong
|
|
2
|
+
* Point-override boxes for the places where `tz-lookup` is a calendar day wrong, and
|
|
3
|
+
* for one place where it is an hour wrong: the Adak/Nome line at Umnak, which
|
|
4
|
+
* `tz-lookup` draws on a meridian near −168.75 while the real line runs diagonally
|
|
5
|
+
* through Samalga Pass, so Nikolski reads `America/Adak` instead of `America/Nome`.
|
|
3
6
|
*
|
|
4
7
|
* `tz-lookup` 6.1.25 (pinned in `package.json`) stores coarse polygons, and at the
|
|
5
8
|
* date line coarse is not an hour off but a whole day: Tutuila resolves to
|
|
@@ -14,7 +17,8 @@
|
|
|
14
17
|
* were measured on 2026-11-27 against `geo-tz` 8.1.10 (full-resolution
|
|
15
18
|
* timezone-boundary-builder polygons) at 0.01°: every non-`Etc/` zone `geo-tz`
|
|
16
19
|
* reports inside a box is that box's zone, and the neighbours that must stay out
|
|
17
|
-
* (Apia, Upolu's east tip, Big Diomede, Swains
|
|
20
|
+
* (Apia, Upolu's east tip, Big Diomede, Swains, Atka and the Hawaii–Aleutian side of
|
|
21
|
+
* Samalga Pass) do. Re-measure before editing an
|
|
18
22
|
* edge — see the GOTCHAS entry for the sweep method.
|
|
19
23
|
*
|
|
20
24
|
* **They are owned by the zone question.** Never derive them from, or merge them
|
|
@@ -27,6 +31,12 @@
|
|
|
27
31
|
* −168.978 between the two Diomedes; `geo-tz` reads `Asia/Anadyr` at −168.980 and
|
|
28
32
|
* `America/Nome` at −168.975 across the whole box latitude.
|
|
29
33
|
*
|
|
34
|
+
* **Why the Umnak west edge is −169.34.** It is 0.01° east of the furthest-east
|
|
35
|
+
* `America/Adak` point `geo-tz` holds in the area (−169.35), so no Adak point is inside
|
|
36
|
+
* the box. The cost is an open-water wedge in Samalga Pass (lat 52.57–53.08, lon
|
|
37
|
+
* −169.49 to −169.34; 462 points at 0.01°) that keeps `tz-lookup`'s Adak answer. A
|
|
38
|
+
* west edge at −169.5 would put 504 Adak points inside the box.
|
|
39
|
+
*
|
|
30
40
|
* Open sea inside a box gets the box's zone rather than a nautical `Etc/GMT±n`
|
|
31
41
|
* zone, deliberately — a caller asking about the water off Tutuila wants Samoa
|
|
32
42
|
* local time, which is also what Open-Meteo answers there.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timezoneOverrides.d.ts","sourceRoot":"","sources":["../../src/utils/timezoneOverrides.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"timezoneOverrides.d.ts","sourceRoot":"","sources":["../../src/utils/timezoneOverrides.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,MAAM,WAAW,mBAAmB;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,4BAA4B;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAaD;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,mBAAmB,EAOhE,CAAC;AAEH;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAO3F"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Point-override boxes for the places where `tz-lookup` is a calendar day wrong
|
|
2
|
+
* Point-override boxes for the places where `tz-lookup` is a calendar day wrong, and
|
|
3
|
+
* for one place where it is an hour wrong: the Adak/Nome line at Umnak, which
|
|
4
|
+
* `tz-lookup` draws on a meridian near −168.75 while the real line runs diagonally
|
|
5
|
+
* through Samalga Pass, so Nikolski reads `America/Adak` instead of `America/Nome`.
|
|
3
6
|
*
|
|
4
7
|
* `tz-lookup` 6.1.25 (pinned in `package.json`) stores coarse polygons, and at the
|
|
5
8
|
* date line coarse is not an hour off but a whole day: Tutuila resolves to
|
|
@@ -14,7 +17,8 @@
|
|
|
14
17
|
* were measured on 2026-11-27 against `geo-tz` 8.1.10 (full-resolution
|
|
15
18
|
* timezone-boundary-builder polygons) at 0.01°: every non-`Etc/` zone `geo-tz`
|
|
16
19
|
* reports inside a box is that box's zone, and the neighbours that must stay out
|
|
17
|
-
* (Apia, Upolu's east tip, Big Diomede, Swains
|
|
20
|
+
* (Apia, Upolu's east tip, Big Diomede, Swains, Atka and the Hawaii–Aleutian side of
|
|
21
|
+
* Samalga Pass) do. Re-measure before editing an
|
|
18
22
|
* edge — see the GOTCHAS entry for the sweep method.
|
|
19
23
|
*
|
|
20
24
|
* **They are owned by the zone question.** Never derive them from, or merge them
|
|
@@ -27,6 +31,12 @@
|
|
|
27
31
|
* −168.978 between the two Diomedes; `geo-tz` reads `Asia/Anadyr` at −168.980 and
|
|
28
32
|
* `America/Nome` at −168.975 across the whole box latitude.
|
|
29
33
|
*
|
|
34
|
+
* **Why the Umnak west edge is −169.34.** It is 0.01° east of the furthest-east
|
|
35
|
+
* `America/Adak` point `geo-tz` holds in the area (−169.35), so no Adak point is inside
|
|
36
|
+
* the box. The cost is an open-water wedge in Samalga Pass (lat 52.57–53.08, lon
|
|
37
|
+
* −169.49 to −169.34; 462 points at 0.01°) that keeps `tz-lookup`'s Adak answer. A
|
|
38
|
+
* west edge at −169.5 would put 504 Adak points inside the box.
|
|
39
|
+
*
|
|
30
40
|
* Open sea inside a box gets the box's zone rather than a nautical `Etc/GMT±n`
|
|
31
41
|
* zone, deliberately — a caller asking about the water off Tutuila wants Samoa
|
|
32
42
|
* local time, which is also what Open-Meteo answers there.
|
|
@@ -50,6 +60,7 @@ export const TIMEZONE_OVERRIDE_BOXES = Object.freeze([
|
|
|
50
60
|
box('St Lawrence Island', 62.8, 64.0, -172.25, -168.4, 'America/Nome'),
|
|
51
61
|
box('Little Diomede and US waters north of it', 65.6, 66.0, -168.975, -168.7, 'America/Nome'),
|
|
52
62
|
box('Russian waters south of Big Diomede', 65.36, 65.64, -170.65, -168.98, 'Asia/Anadyr'),
|
|
63
|
+
box('Umnak, Samalga and Nikolski (Alaska time east of Samalga Pass)', 52.5, 53.5, -169.34, -168.7, 'America/Nome'),
|
|
53
64
|
]);
|
|
54
65
|
/**
|
|
55
66
|
* The override zone for a coordinate, or `undefined` when no box contains it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timezoneOverrides.js","sourceRoot":"","sources":["../../src/utils/timezoneOverrides.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"timezoneOverrides.js","sourceRoot":"","sources":["../../src/utils/timezoneOverrides.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAaH,SAAS,GAAG,CACV,KAAa,EACb,MAAc,EACd,MAAc,EACd,MAAc,EACd,MAAc,EACd,IAAY;IAEZ,OAAO,M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,SAAS,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dangahagan/weather-mcp",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.10",
|
|
4
4
|
"description": "MCP server giving AI assistants 17 weather tools with zero API keys: global forecasts, current conditions, alerts, air quality, marine conditions, lightning detection, radar imagery, river levels, wildfire tracking, and historical weather back to 1940. Built entirely on free public data sources (NOAA, Open-Meteo, USGS, NIFC).",
|
|
5
5
|
"mcpName": "io.github.dgahagan/weather-mcp",
|
|
6
6
|
"main": "dist/index.js",
|