react-native-map4d-services 0.1.0
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/LICENSE +21 -0
- package/README.md +24 -0
- package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.1.1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.1.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.1.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +59 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/com/reactnativemap4dservices/Map4dServicesModule.java +34 -0
- package/android/src/main/java/com/reactnativemap4dservices/Map4dServicesPackage.java +28 -0
- package/ios/.DS_Store +0 -0
- package/ios/Map4dServices.h +5 -0
- package/ios/Map4dServices.m +81 -0
- package/ios/Map4dServices.xcodeproj/project.pbxproj +282 -0
- package/ios/Map4dServices.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
- package/ios/RCTConvert+Services.h +33 -0
- package/ios/RCTConvert+Services.m +146 -0
- package/ios/SClient.h +23 -0
- package/ios/SClient.m +47 -0
- package/ios/SRequest.h +40 -0
- package/ios/SRequest.m +143 -0
- package/lib/commonjs/index.js +107 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/index.js +76 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/index.d.ts +111 -0
- package/package.json +150 -0
- package/react-native-map4d-services.podspec +20 -0
- package/src/index.tsx +175 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export declare type MFLocationComponent = {
|
|
2
|
+
latitude: number;
|
|
3
|
+
longitude: number;
|
|
4
|
+
alias?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type MFViewboxComponent = {
|
|
7
|
+
southwest: MFLocationComponent;
|
|
8
|
+
northeast: MFLocationComponent;
|
|
9
|
+
};
|
|
10
|
+
export declare enum MFTravelMode {
|
|
11
|
+
car = "car",
|
|
12
|
+
bike = "bike",
|
|
13
|
+
foot = "foot",
|
|
14
|
+
motorcycle = "motorcycle"
|
|
15
|
+
}
|
|
16
|
+
export declare enum MFRouteWeighting {
|
|
17
|
+
shortest = "shortest",
|
|
18
|
+
fastest = "fastest",
|
|
19
|
+
balance = "balance"
|
|
20
|
+
}
|
|
21
|
+
export declare enum MFLanguageResult {
|
|
22
|
+
en = "en",
|
|
23
|
+
vi = "vi"
|
|
24
|
+
}
|
|
25
|
+
export declare enum MFRouteType {
|
|
26
|
+
motorway = "motorway",
|
|
27
|
+
trunk = "trunk",
|
|
28
|
+
ferry = "ferry",
|
|
29
|
+
bridge = "bridge",
|
|
30
|
+
tunnel = "tunnel"
|
|
31
|
+
}
|
|
32
|
+
export declare type MFRouteRestriction = {
|
|
33
|
+
location?: MFLocationComponent;
|
|
34
|
+
radius?: number;
|
|
35
|
+
viewbox?: MFViewboxComponent;
|
|
36
|
+
path?: MFLocationComponent[];
|
|
37
|
+
types?: MFRouteType[] | string[];
|
|
38
|
+
};
|
|
39
|
+
export declare type MFSuggestionParams = {
|
|
40
|
+
text: string;
|
|
41
|
+
location?: MFLocationComponent;
|
|
42
|
+
acronym?: boolean;
|
|
43
|
+
};
|
|
44
|
+
export declare type MFTextSearchParams = {
|
|
45
|
+
text: string;
|
|
46
|
+
types?: string[];
|
|
47
|
+
datetime?: Date;
|
|
48
|
+
location?: MFLocationComponent;
|
|
49
|
+
};
|
|
50
|
+
export declare type MFNearbySearchParams = {
|
|
51
|
+
location: MFLocationComponent;
|
|
52
|
+
radius: number;
|
|
53
|
+
text?: string;
|
|
54
|
+
types?: string[];
|
|
55
|
+
tags?: string[];
|
|
56
|
+
datetime?: Date;
|
|
57
|
+
};
|
|
58
|
+
export declare type MFViewboxSearchParams = {
|
|
59
|
+
viewbox: MFViewboxComponent;
|
|
60
|
+
text?: string;
|
|
61
|
+
types?: string[];
|
|
62
|
+
tags?: string[];
|
|
63
|
+
datetime?: Date;
|
|
64
|
+
};
|
|
65
|
+
export declare type MFGeocodeParams = {
|
|
66
|
+
location?: MFLocationComponent;
|
|
67
|
+
address?: string;
|
|
68
|
+
viewbox?: MFViewboxComponent;
|
|
69
|
+
};
|
|
70
|
+
export declare type MFDirectionsParams = {
|
|
71
|
+
origin: MFLocationComponent;
|
|
72
|
+
destination: MFLocationComponent;
|
|
73
|
+
waypoints?: MFLocationComponent[];
|
|
74
|
+
mode?: MFTravelMode | string;
|
|
75
|
+
weighting?: MFRouteWeighting | string;
|
|
76
|
+
language?: MFLanguageResult | string;
|
|
77
|
+
restriction?: MFRouteRestriction;
|
|
78
|
+
};
|
|
79
|
+
export declare type MFRouteETAParams = {
|
|
80
|
+
origins: MFLocationComponent[];
|
|
81
|
+
destination: MFLocationComponent;
|
|
82
|
+
mode?: MFTravelMode | string;
|
|
83
|
+
weighting?: MFRouteWeighting | string;
|
|
84
|
+
language?: MFLanguageResult | string;
|
|
85
|
+
restriction?: MFRouteRestriction;
|
|
86
|
+
};
|
|
87
|
+
export declare type MFDistanceMatrixParams = {
|
|
88
|
+
origins: MFLocationComponent[];
|
|
89
|
+
destinations: MFLocationComponent[];
|
|
90
|
+
mode?: MFTravelMode | string;
|
|
91
|
+
weighting?: MFRouteWeighting | string;
|
|
92
|
+
language?: MFLanguageResult | string;
|
|
93
|
+
restriction?: MFRouteRestriction;
|
|
94
|
+
};
|
|
95
|
+
export declare type MFGraphRouteParams = {
|
|
96
|
+
locations: MFLocationComponent[];
|
|
97
|
+
mode?: MFTravelMode | string;
|
|
98
|
+
weighting?: MFRouteWeighting | string;
|
|
99
|
+
language?: MFLanguageResult | string;
|
|
100
|
+
restriction?: MFRouteRestriction;
|
|
101
|
+
};
|
|
102
|
+
export declare function fetchSuggestion(params: MFSuggestionParams): Promise<object>;
|
|
103
|
+
export declare function fetchPlaceDetail(placeId: string): Promise<object>;
|
|
104
|
+
export declare function fetchTextSearch(params: MFTextSearchParams): Promise<object>;
|
|
105
|
+
export declare function fetchNearbySearch(params: MFNearbySearchParams): Promise<object>;
|
|
106
|
+
export declare function fetchViewboxSearch(params: MFViewboxSearchParams): Promise<object>;
|
|
107
|
+
export declare function fetchGeocode(params: MFGeocodeParams): Promise<object>;
|
|
108
|
+
export declare function fetchDirections(params: MFDirectionsParams): Promise<object>;
|
|
109
|
+
export declare function fetchRouteETA(params: MFRouteETAParams): Promise<object>;
|
|
110
|
+
export declare function fetchDistanceMatrix(params: MFDistanceMatrixParams): Promise<object>;
|
|
111
|
+
export declare function fetchGraphRoute(params: MFGraphRouteParams): Promise<object>;
|
package/package.json
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-native-map4d-services",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "React Native Map4dServices for iOS + Android",
|
|
5
|
+
"main": "lib/commonjs/index",
|
|
6
|
+
"module": "lib/module/index",
|
|
7
|
+
"types": "lib/typescript/index.d.ts",
|
|
8
|
+
"react-native": "src/index",
|
|
9
|
+
"source": "src/index",
|
|
10
|
+
"files": [
|
|
11
|
+
"src",
|
|
12
|
+
"lib",
|
|
13
|
+
"android",
|
|
14
|
+
"ios",
|
|
15
|
+
"cpp",
|
|
16
|
+
"react-native-map4d-services.podspec",
|
|
17
|
+
"!lib/typescript/example",
|
|
18
|
+
"!android/build",
|
|
19
|
+
"!ios/build",
|
|
20
|
+
"!**/__tests__",
|
|
21
|
+
"!**/__fixtures__",
|
|
22
|
+
"!**/__mocks__"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"test": "jest",
|
|
26
|
+
"typescript": "tsc --noEmit",
|
|
27
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
28
|
+
"prepare": "bob build",
|
|
29
|
+
"release": "release-it",
|
|
30
|
+
"example": "yarn --cwd example",
|
|
31
|
+
"pods": "cd example && pod-install --quiet",
|
|
32
|
+
"bootstrap": "yarn example && yarn && yarn pods"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"react",
|
|
36
|
+
"react-native",
|
|
37
|
+
"map4d",
|
|
38
|
+
"services",
|
|
39
|
+
"map4d-services",
|
|
40
|
+
"iotlink"
|
|
41
|
+
],
|
|
42
|
+
"repository": "https://github.com/map4d/map4d-services-react-native",
|
|
43
|
+
"author": "IOTLink <admin@iotlink.com.vn> (https://iotlink.com.vn/)",
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/map4d/map4d-services-react-native/issues"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://github.com/map4d/map4d-services-react-native#readme",
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"registry": "https://registry.npmjs.org/"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@commitlint/config-conventional": "^11.0.0",
|
|
54
|
+
"@react-native-community/eslint-config": "^2.0.0",
|
|
55
|
+
"@release-it/conventional-changelog": "^2.0.0",
|
|
56
|
+
"@types/jest": "^26.0.0",
|
|
57
|
+
"@types/react": "^16.9.19",
|
|
58
|
+
"@types/react-native": "0.62.13",
|
|
59
|
+
"commitlint": "^11.0.0",
|
|
60
|
+
"eslint": "^7.2.0",
|
|
61
|
+
"eslint-config-prettier": "^7.0.0",
|
|
62
|
+
"eslint-plugin-prettier": "^3.1.3",
|
|
63
|
+
"husky": "^6.0.0",
|
|
64
|
+
"jest": "^26.0.1",
|
|
65
|
+
"pod-install": "^0.1.0",
|
|
66
|
+
"prettier": "^2.0.5",
|
|
67
|
+
"react": "16.13.1",
|
|
68
|
+
"react-native": "0.63.4",
|
|
69
|
+
"react-native-builder-bob": "^0.18.0",
|
|
70
|
+
"release-it": "^14.2.2",
|
|
71
|
+
"typescript": "^4.1.3"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"react": "*",
|
|
75
|
+
"react-native": "*"
|
|
76
|
+
},
|
|
77
|
+
"jest": {
|
|
78
|
+
"preset": "react-native",
|
|
79
|
+
"modulePathIgnorePatterns": [
|
|
80
|
+
"<rootDir>/example/node_modules",
|
|
81
|
+
"<rootDir>/lib/"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"commitlint": {
|
|
85
|
+
"extends": [
|
|
86
|
+
"@commitlint/config-conventional"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"release-it": {
|
|
90
|
+
"git": {
|
|
91
|
+
"commitMessage": "chore: release ${version}",
|
|
92
|
+
"tagName": "v${version}"
|
|
93
|
+
},
|
|
94
|
+
"npm": {
|
|
95
|
+
"publish": true
|
|
96
|
+
},
|
|
97
|
+
"github": {
|
|
98
|
+
"release": true
|
|
99
|
+
},
|
|
100
|
+
"plugins": {
|
|
101
|
+
"@release-it/conventional-changelog": {
|
|
102
|
+
"preset": "angular"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"eslintConfig": {
|
|
107
|
+
"root": true,
|
|
108
|
+
"extends": [
|
|
109
|
+
"@react-native-community",
|
|
110
|
+
"prettier"
|
|
111
|
+
],
|
|
112
|
+
"rules": {
|
|
113
|
+
"prettier/prettier": [
|
|
114
|
+
"error",
|
|
115
|
+
{
|
|
116
|
+
"quoteProps": "consistent",
|
|
117
|
+
"singleQuote": true,
|
|
118
|
+
"tabWidth": 2,
|
|
119
|
+
"trailingComma": "es5",
|
|
120
|
+
"useTabs": false
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"eslintIgnore": [
|
|
126
|
+
"node_modules/",
|
|
127
|
+
"lib/"
|
|
128
|
+
],
|
|
129
|
+
"prettier": {
|
|
130
|
+
"quoteProps": "consistent",
|
|
131
|
+
"singleQuote": true,
|
|
132
|
+
"tabWidth": 2,
|
|
133
|
+
"trailingComma": "es5",
|
|
134
|
+
"useTabs": false
|
|
135
|
+
},
|
|
136
|
+
"react-native-builder-bob": {
|
|
137
|
+
"source": "src",
|
|
138
|
+
"output": "lib",
|
|
139
|
+
"targets": [
|
|
140
|
+
"commonjs",
|
|
141
|
+
"module",
|
|
142
|
+
[
|
|
143
|
+
"typescript",
|
|
144
|
+
{
|
|
145
|
+
"project": "tsconfig.build.json"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.name = "react-native-map4d-services"
|
|
7
|
+
s.version = package["version"]
|
|
8
|
+
s.summary = package["description"]
|
|
9
|
+
s.homepage = package["homepage"]
|
|
10
|
+
s.license = package["license"]
|
|
11
|
+
s.authors = package["author"]
|
|
12
|
+
|
|
13
|
+
s.platforms = { :ios => "10.0" }
|
|
14
|
+
s.source = { :git => "https://github.com/map4d/map4d-services-react-native.git", :tag => "#{s.version}" }
|
|
15
|
+
|
|
16
|
+
s.source_files = "ios/**/*.{h,m,mm}"
|
|
17
|
+
|
|
18
|
+
s.dependency "React-Core"
|
|
19
|
+
s.dependency "Map4dServices"
|
|
20
|
+
end
|
package/src/index.tsx
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
|
2
|
+
|
|
3
|
+
const LINKING_ERROR =
|
|
4
|
+
`The package 'react-native-map4d-services' doesn't seem to be linked. Make sure: \n\n` +
|
|
5
|
+
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
6
|
+
'- You rebuilt the app after installing the package\n' +
|
|
7
|
+
'- You are not using Expo managed workflow\n';
|
|
8
|
+
|
|
9
|
+
const Map4dServices = NativeModules.Map4dServices
|
|
10
|
+
? NativeModules.Map4dServices
|
|
11
|
+
: new Proxy(
|
|
12
|
+
{},
|
|
13
|
+
{
|
|
14
|
+
get() {
|
|
15
|
+
throw new Error(LINKING_ERROR);
|
|
16
|
+
},
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
export type MFLocationComponent = {
|
|
21
|
+
latitude: number,
|
|
22
|
+
longitude: number,
|
|
23
|
+
alias?: string,
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type MFViewboxComponent = {
|
|
27
|
+
southwest: MFLocationComponent,
|
|
28
|
+
northeast: MFLocationComponent,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export enum MFTravelMode {
|
|
32
|
+
car = 'car',
|
|
33
|
+
bike = 'bike',
|
|
34
|
+
foot = 'foot',
|
|
35
|
+
motorcycle = 'motorcycle',
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export enum MFRouteWeighting {
|
|
39
|
+
shortest = 'shortest',
|
|
40
|
+
fastest = 'fastest',
|
|
41
|
+
balance = 'balance',
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export enum MFLanguageResult {
|
|
45
|
+
en = 'en',
|
|
46
|
+
vi = 'vi',
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export enum MFRouteType {
|
|
50
|
+
motorway = 'motorway',
|
|
51
|
+
trunk = 'trunk',
|
|
52
|
+
ferry = 'ferry',
|
|
53
|
+
bridge = 'bridge',
|
|
54
|
+
tunnel = 'tunnel',
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type MFRouteRestriction = {
|
|
58
|
+
location?: MFLocationComponent,
|
|
59
|
+
radius?: number,
|
|
60
|
+
viewbox?: MFViewboxComponent,
|
|
61
|
+
path?: MFLocationComponent[],
|
|
62
|
+
types?: MFRouteType[] | string[]
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type MFSuggestionParams = {
|
|
66
|
+
text: string,
|
|
67
|
+
location?: MFLocationComponent,
|
|
68
|
+
acronym?: boolean,
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type MFTextSearchParams = {
|
|
72
|
+
text: string,
|
|
73
|
+
types?: string[],
|
|
74
|
+
datetime?: Date,
|
|
75
|
+
location?: MFLocationComponent,
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type MFNearbySearchParams = {
|
|
79
|
+
location: MFLocationComponent,
|
|
80
|
+
radius: number,
|
|
81
|
+
text?: string,
|
|
82
|
+
types?: string[],
|
|
83
|
+
tags?: string[],
|
|
84
|
+
datetime?: Date,
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type MFViewboxSearchParams = {
|
|
88
|
+
viewbox: MFViewboxComponent,
|
|
89
|
+
text?: string,
|
|
90
|
+
types?: string[],
|
|
91
|
+
tags?: string[],
|
|
92
|
+
datetime?: Date,
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type MFGeocodeParams = {
|
|
96
|
+
location?: MFLocationComponent,
|
|
97
|
+
address?: string,
|
|
98
|
+
viewbox?: MFViewboxComponent,
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type MFDirectionsParams = {
|
|
102
|
+
origin: MFLocationComponent,
|
|
103
|
+
destination: MFLocationComponent,
|
|
104
|
+
waypoints?: MFLocationComponent[],
|
|
105
|
+
mode?: MFTravelMode | string,
|
|
106
|
+
weighting?: MFRouteWeighting | string,
|
|
107
|
+
language?: MFLanguageResult | string,
|
|
108
|
+
restriction?: MFRouteRestriction,
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type MFRouteETAParams = {
|
|
112
|
+
origins: MFLocationComponent[],
|
|
113
|
+
destination: MFLocationComponent,
|
|
114
|
+
mode?: MFTravelMode | string,
|
|
115
|
+
weighting?: MFRouteWeighting | string,
|
|
116
|
+
language?: MFLanguageResult | string,
|
|
117
|
+
restriction?: MFRouteRestriction,
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type MFDistanceMatrixParams = {
|
|
121
|
+
origins: MFLocationComponent[],
|
|
122
|
+
destinations: MFLocationComponent[],
|
|
123
|
+
mode?: MFTravelMode | string,
|
|
124
|
+
weighting?: MFRouteWeighting | string,
|
|
125
|
+
language?: MFLanguageResult | string,
|
|
126
|
+
restriction?: MFRouteRestriction,
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type MFGraphRouteParams = {
|
|
130
|
+
locations: MFLocationComponent[],
|
|
131
|
+
mode?: MFTravelMode | string,
|
|
132
|
+
weighting?: MFRouteWeighting | string,
|
|
133
|
+
language?: MFLanguageResult | string,
|
|
134
|
+
restriction?: MFRouteRestriction,
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function fetchSuggestion(params: MFSuggestionParams): Promise<object> {
|
|
138
|
+
return Map4dServices.fetchSuggestion(params);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function fetchPlaceDetail(placeId: string): Promise<object> {
|
|
142
|
+
return Map4dServices.fetchPlaceDetail(placeId);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function fetchTextSearch(params: MFTextSearchParams): Promise<object> {
|
|
146
|
+
return Map4dServices.fetchTextSearch(params);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function fetchNearbySearch(params: MFNearbySearchParams): Promise<object> {
|
|
150
|
+
return Map4dServices.fetchNearbySearch(params);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function fetchViewboxSearch(params: MFViewboxSearchParams): Promise<object> {
|
|
154
|
+
return Map4dServices.fetchViewboxSearch(params);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function fetchGeocode(params: MFGeocodeParams): Promise<object> {
|
|
158
|
+
return Map4dServices.fetchGeocode(params);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function fetchDirections(params: MFDirectionsParams): Promise<object> {
|
|
162
|
+
return Map4dServices.fetchDirections(params);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function fetchRouteETA(params: MFRouteETAParams): Promise<object> {
|
|
166
|
+
return Map4dServices.fetchRouteETA(params);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function fetchDistanceMatrix(params: MFDistanceMatrixParams): Promise<object> {
|
|
170
|
+
return Map4dServices.fetchDistanceMatrix(params);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function fetchGraphRoute(params: MFGraphRouteParams): Promise<object> {
|
|
174
|
+
return Map4dServices.fetchGraphRoute(params);
|
|
175
|
+
}
|