@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.
- package/dist/data/jma-hierarchy.d.ts +19 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/interfaces/ReverseGeocodingResult.d.ts +0 -9
- package/dist/m_jma_geocode.d.ts +7 -7
- package/package.json +1 -1
|
@@ -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
|
-
}
|
package/dist/m_jma_geocode.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JMAHierarchyEntry } from './data/jma-hierarchy';
|
|
2
2
|
/**
|
|
3
|
-
* Resolves JMA weather area
|
|
4
|
-
* Queries the class20s PBF tile (1 HTTP request) then derives parent
|
|
5
|
-
* from the bundled hierarchy map (area.json
|
|
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
|
|
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<
|
|
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.
|
|
4
|
+
"version": "2.2.1",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.module.js",
|