@sk-global/js-msearch-gsi-jp 2.2.0 → 2.2.1

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.
@@ -21,12 +21,3 @@ export interface ReverseGeocodingResultJP extends ReverseGeocodingResult {
21
21
  prefecture?: string;
22
22
  city?: string;
23
23
  }
24
- /**
25
- * JMA weather area codes resolved from lat/lon
26
- */
27
- export interface JMACodeResult {
28
- officeCode?: string;
29
- class10Code?: string;
30
- class15Code?: string;
31
- class20Code?: string;
32
- }
@@ -1,12 +1,12 @@
1
- import { JMACodeResult } from './interfaces/index';
1
+ import { JMAHierarchyEntry } from './data/jma-hierarchy';
2
2
  /**
3
- * Resolves JMA weather area codes for a given latitude and longitude.
4
- * Queries the class20s PBF tile (1 HTTP request) then derives parent codes
5
- * from the bundled hierarchy map (area.json → build-jma-hierarchy.js).
3
+ * Resolves JMA weather area info for a given latitude and longitude.
4
+ * Queries the class20s PBF tile (1 HTTP request) then derives all parent info
5
+ * from the bundled hierarchy map (built from JMA area.json).
6
6
  *
7
7
  * @param lat - Latitude
8
8
  * @param lon - Longitude
9
- * @returns officeCode, class10Code, class15Code, class20Code undefined if point outside coverage
9
+ * @returns Full JMAHierarchyEntry with office/class10/class15/class20, or null if outside coverage
10
10
  */
11
- declare const latLonToJMACode: (lat: number, lon: number) => Promise<JMACodeResult>;
12
- export { latLonToJMACode };
11
+ declare const latLonToJMACode: (lat: number, lon: number) => Promise<JMAHierarchyEntry | null>;
12
+ export { latLonToJMACode, JMAHierarchyEntry };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sk-global/js-msearch-gsi-jp",
3
3
  "description": "A client library for APIs that presented by Geospatial Information Authority of Japan",
4
- "version": "2.2.0",
4
+ "version": "2.2.1",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.module.js",