@sk-global/js-msearch-gsi-jp 2.1.18 → 2.1.19
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.
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReverseGeocodingResult } from './ReverseGeocodingResult';
|
|
2
|
+
export interface ReverseGeocodingOptions {
|
|
3
|
+
/** Zoom level of the map. Default is 10 */
|
|
4
|
+
zoomBase: number;
|
|
5
|
+
/** Tile URL of the map */
|
|
6
|
+
tileUrl: string;
|
|
7
|
+
/** Layer name of the map */
|
|
8
|
+
layer: string;
|
|
9
|
+
/**
|
|
10
|
+
* Get reverse geocoding result from the feature
|
|
11
|
+
*/
|
|
12
|
+
getResult: (feature: GeoJSON.Feature) => ReverseGeocodingResult;
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base interface of reverse geocoding result
|
|
3
|
+
*/
|
|
4
|
+
export interface ReverseGeocodingResult {
|
|
5
|
+
code?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Interface of country polygons by world bank
|
|
9
|
+
*/
|
|
10
|
+
export interface ReverseGeocodingResultCountry extends ReverseGeocodingResult {
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Interface of reverse geocoding result for Japan
|
|
15
|
+
*/
|
|
16
|
+
export interface ReverseGeocodingResultJP extends ReverseGeocodingResult {
|
|
17
|
+
results?: {
|
|
18
|
+
muniCd?: string;
|
|
19
|
+
lv01Nm?: string;
|
|
20
|
+
};
|
|
21
|
+
prefecture?: string;
|
|
22
|
+
city?: string;
|
|
23
|
+
}
|
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.1.
|
|
4
|
+
"version": "2.1.19",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.module.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "ts-node ./src/local.ts",
|
|
20
20
|
"create-data": "bash bin/download.sh && bash bin/build.sh",
|
|
21
|
-
"build": "microbundle --define PKG_VERSION=$npm_package_version",
|
|
21
|
+
"build": "microbundle --define PKG_VERSION=$npm_package_version && tsc -p tsconfig.interfaces.json",
|
|
22
22
|
"watch": "microbundle watch --define PKG_VERSION=$npm_package_version",
|
|
23
23
|
"test": "jest --coverage",
|
|
24
24
|
"lint": "prettier src test -c",
|