etincidunt 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.prettierignore +2 -0
- package/.travis.yml +29 -0
- package/.vscode/launch.json +24 -0
- package/.vscode/settings.json +3 -0
- package/demos/ago-node-cli/README.md +29 -0
- package/demos/ago-node-cli/ago.js +32 -0
- package/demos/ago-node-cli/index.js +11 -0
- package/demos/ago-node-cli/lib/item-export-command.js +48 -0
- package/demos/ago-node-cli/lib/item-search-command.js +35 -0
- package/demos/ago-node-cli/package-lock.json +172 -0
- package/demos/ago-node-cli/package.json +30 -0
- package/demos/attachments/README.md +5 -0
- package/demos/attachments/index.html +164 -0
- package/demos/attachments/package-lock.json +182 -0
- package/demos/attachments/package.json +18 -0
- package/demos/batch-geocoder-node/NYC_Restaurant_Inspection_Results.csv +100 -0
- package/demos/batch-geocoder-node/README.md +14 -0
- package/demos/batch-geocoder-node/batch-geocode.js +112 -0
- package/demos/batch-geocoder-node/config-template.js +18 -0
- package/demos/batch-geocoder-node/package-lock.json +109 -0
- package/demos/batch-geocoder-node/package.json +37 -0
- package/demos/express/README.md +10 -0
- package/demos/express/config.json.template +3 -0
- package/demos/express/package-lock.json +388 -0
- package/demos/express/package.json +18 -0
- package/demos/express/server.js +28 -0
- package/demos/feature-service-browser/README.md +6 -0
- package/demos/feature-service-browser/index.html +122 -0
- package/demos/feature-service-browser/package-lock.json +182 -0
- package/demos/feature-service-browser/package.json +18 -0
- package/demos/geocoder-browser/README.md +10 -0
- package/demos/geocoder-browser/config.js.template +1 -0
- package/demos/geocoder-browser/index.html +131 -0
- package/demos/geocoder-browser/package-lock.json +163 -0
- package/demos/geocoder-browser/package.json +19 -0
- package/demos/geocoder-browser/post-sign-in.html +25 -0
- package/demos/jsapi-integration/README.md +8 -0
- package/demos/jsapi-integration/config.js +6 -0
- package/demos/jsapi-integration/index.html +79 -0
- package/demos/jsapi-integration/package-lock.json +184 -0
- package/demos/jsapi-integration/package.json +19 -0
- package/demos/oauth2-browser/README.md +12 -0
- package/demos/oauth2-browser/authenticate.html +32 -0
- package/demos/oauth2-browser/config.js.template +6 -0
- package/demos/oauth2-browser/index.html +202 -0
- package/demos/oauth2-browser/logo.svg +4 -0
- package/demos/oauth2-browser/package-lock.json +163 -0
- package/demos/oauth2-browser/package.json +18 -0
- package/demos/oauth2-browser/style.css +36 -0
- package/demos/vue/.babelrc +6 -0
- package/demos/vue/.env.example +8 -0
- package/demos/vue/README.md +17 -0
- package/demos/vue/index.html +21 -0
- package/demos/vue/package-lock.json +7236 -0
- package/demos/vue/package.json +39 -0
- package/demos/vue/src/assets/logo.svg +29 -0
- package/demos/vue/src/components/App.vue +302 -0
- package/demos/vue/src/components/Authenticate.vue +68 -0
- package/demos/vue/src/components/Loader.vue +216 -0
- package/demos/vue/src/main.js +75 -0
- package/demos/vue/webpack.config.js +84 -0
- package/docs/FAQ.md +28 -0
- package/docs/HISTORY.md +62 -0
- package/docs/acetate.config.js +214 -0
- package/docs/build-typedoc.js +301 -0
- package/docs/src/_layout.html +82 -0
- package/docs/src/api/_declaration.html +496 -0
- package/docs/src/api/_layout.html +127 -0
- package/docs/src/api/_package.html +13 -0
- package/docs/src/api/index.html +23 -0
- package/docs/src/guides/_layout.html +24 -0
- package/docs/src/guides/amd-requirejs-dojo.md +40 -0
- package/docs/src/guides/babel-and-rollup.md +30 -0
- package/docs/src/guides/babel-and-webpack.md +30 -0
- package/docs/src/guides/browser-authentication.md +9 -0
- package/docs/src/guides/browserify.md +9 -0
- package/docs/src/guides/cli-authentication.md +9 -0
- package/docs/src/guides/client-server-authentication.md +9 -0
- package/docs/src/guides/from-a-cdn.md +36 -0
- package/docs/src/guides/index.md +52 -0
- package/docs/src/guides/node.md +30 -0
- package/docs/src/guides/package-overview.md +8 -0
- package/docs/src/guides/server-authentication.md +9 -0
- package/docs/src/guides/typescript-and-webpack.md +9 -0
- package/docs/src/img/icons.png +0 -0
- package/docs/src/img/icons@2x.png +0 -0
- package/docs/src/index.html +12 -0
- package/docs/src/js/api-search.js +113 -0
- package/docs/src/js/index.js +1 -0
- package/docs/src/js/nav-toggle.js +41 -0
- package/docs/src/sass/_highlight.scss +96 -0
- package/docs/src/sass/_icons.scss +157 -0
- package/docs/src/sass/style.scss +169 -0
- package/jasmine.json +7 -0
- package/karma.conf.js +100 -0
- package/lerna.json +8 -0
- package/notes/README.md +88 -0
- package/package.json +91 -0
- package/packages/arcgis-rest-auth/README.md +64 -0
- package/packages/arcgis-rest-auth/package-lock.json +11 -0
- package/packages/arcgis-rest-auth/package.json +51 -0
- package/packages/arcgis-rest-auth/src/ApplicationSession.ts +91 -0
- package/packages/arcgis-rest-auth/src/UserSession.ts +829 -0
- package/packages/arcgis-rest-auth/src/authenticated-request-options.ts +21 -0
- package/packages/arcgis-rest-auth/src/fetch-token.ts +55 -0
- package/packages/arcgis-rest-auth/src/generate-token.ts +36 -0
- package/packages/arcgis-rest-auth/src/index.ts +5 -0
- package/packages/arcgis-rest-auth/test/ApplicationSession.test.ts +121 -0
- package/packages/arcgis-rest-auth/test/UserSession.test.ts +883 -0
- package/packages/arcgis-rest-auth/test/fetchToken.test.ts +76 -0
- package/packages/arcgis-rest-auth/test/generateToken.test.ts +36 -0
- package/packages/arcgis-rest-auth/test/utils.ts +11 -0
- package/packages/arcgis-rest-auth/tsconfig.json +6 -0
- package/packages/arcgis-rest-common-types/README.md +61 -0
- package/packages/arcgis-rest-common-types/package.json +38 -0
- package/packages/arcgis-rest-common-types/src/group.ts +51 -0
- package/packages/arcgis-rest-common-types/src/index.ts +467 -0
- package/packages/arcgis-rest-common-types/src/item.ts +45 -0
- package/packages/arcgis-rest-common-types/src/webmap.ts +1225 -0
- package/packages/arcgis-rest-common-types/tsconfig.json +11 -0
- package/packages/arcgis-rest-feature-service/README.md +70 -0
- package/packages/arcgis-rest-feature-service/package-lock.json +11 -0
- package/packages/arcgis-rest-feature-service/package.json +50 -0
- package/packages/arcgis-rest-feature-service/src/add.ts +82 -0
- package/packages/arcgis-rest-feature-service/src/addAttachment.ts +65 -0
- package/packages/arcgis-rest-feature-service/src/delete.ts +85 -0
- package/packages/arcgis-rest-feature-service/src/deleteAttachments.ts +68 -0
- package/packages/arcgis-rest-feature-service/src/getAttachments.ts +64 -0
- package/packages/arcgis-rest-feature-service/src/helpers.ts +77 -0
- package/packages/arcgis-rest-feature-service/src/index.ts +8 -0
- package/packages/arcgis-rest-feature-service/src/query.ts +174 -0
- package/packages/arcgis-rest-feature-service/src/update.ts +81 -0
- package/packages/arcgis-rest-feature-service/src/updateAttachment.ts +74 -0
- package/packages/arcgis-rest-feature-service/test/attachments.test.ts +179 -0
- package/packages/arcgis-rest-feature-service/test/features.test.ts +172 -0
- package/packages/arcgis-rest-feature-service/test/mocks/feature.ts +220 -0
- package/packages/arcgis-rest-feature-service/test/mocks/foo.txt +1 -0
- package/packages/arcgis-rest-feature-service/tsconfig.json +6 -0
- package/packages/arcgis-rest-geocoder/README.md +73 -0
- package/packages/arcgis-rest-geocoder/package-lock.json +11 -0
- package/packages/arcgis-rest-geocoder/package.json +52 -0
- package/packages/arcgis-rest-geocoder/src/bulk.ts +102 -0
- package/packages/arcgis-rest-geocoder/src/geocode.ts +117 -0
- package/packages/arcgis-rest-geocoder/src/helpers.ts +81 -0
- package/packages/arcgis-rest-geocoder/src/index.ts +4 -0
- package/packages/arcgis-rest-geocoder/src/reverse.ts +84 -0
- package/packages/arcgis-rest-geocoder/src/suggest.ts +72 -0
- package/packages/arcgis-rest-geocoder/test/geocoder.test.ts +510 -0
- package/packages/arcgis-rest-geocoder/test/mocks/responses.ts +588 -0
- package/packages/arcgis-rest-geocoder/tsconfig.json +6 -0
- package/packages/arcgis-rest-groups/README.md +64 -0
- package/packages/arcgis-rest-groups/package-lock.json +11 -0
- package/packages/arcgis-rest-groups/package.json +52 -0
- package/packages/arcgis-rest-groups/src/groups.ts +272 -0
- package/packages/arcgis-rest-groups/src/index.ts +1 -0
- package/packages/arcgis-rest-groups/test/groups.test.ts +280 -0
- package/packages/arcgis-rest-groups/test/mocks/responses.ts +137 -0
- package/packages/arcgis-rest-groups/tsconfig.json +6 -0
- package/packages/arcgis-rest-items/README.md +66 -0
- package/packages/arcgis-rest-items/package-lock.json +11 -0
- package/packages/arcgis-rest-items/package.json +52 -0
- package/packages/arcgis-rest-items/src/index.ts +1 -0
- package/packages/arcgis-rest-items/src/items.ts +498 -0
- package/packages/arcgis-rest-items/test/items.test.ts +1153 -0
- package/packages/arcgis-rest-items/test/mocks/foo.zip +0 -0
- package/packages/arcgis-rest-items/test/mocks/item.ts +30 -0
- package/packages/arcgis-rest-items/test/mocks/resources.ts +28 -0
- package/packages/arcgis-rest-items/test/mocks/search.ts +60 -0
- package/packages/arcgis-rest-items/tsconfig.json +6 -0
- package/packages/arcgis-rest-request/README.md +65 -0
- package/packages/arcgis-rest-request/package-lock.json +11 -0
- package/packages/arcgis-rest-request/package.json +42 -0
- package/packages/arcgis-rest-request/src/index.ts +10 -0
- package/packages/arcgis-rest-request/src/request.ts +259 -0
- package/packages/arcgis-rest-request/src/utils/ArcGISAuthError.ts +67 -0
- package/packages/arcgis-rest-request/src/utils/ArcGISRequestError.ts +73 -0
- package/packages/arcgis-rest-request/src/utils/ErrorTypes.ts +29 -0
- package/packages/arcgis-rest-request/src/utils/check-for-errors.ts +65 -0
- package/packages/arcgis-rest-request/src/utils/encode-form-data.ts +29 -0
- package/packages/arcgis-rest-request/src/utils/encode-query-string.ts +23 -0
- package/packages/arcgis-rest-request/src/utils/get-portal-url.ts +25 -0
- package/packages/arcgis-rest-request/src/utils/get-portal.ts +45 -0
- package/packages/arcgis-rest-request/src/utils/process-params.ts +99 -0
- package/packages/arcgis-rest-request/test/mocks/errors.ts +59 -0
- package/packages/arcgis-rest-request/test/mocks/geojson-feature-collection.ts +10 -0
- package/packages/arcgis-rest-request/test/mocks/portal.ts +109 -0
- package/packages/arcgis-rest-request/test/mocks/sharing-rest-info.ts +38 -0
- package/packages/arcgis-rest-request/test/mocks/webmap.ts +38 -0
- package/packages/arcgis-rest-request/test/request.test.ts +296 -0
- package/packages/arcgis-rest-request/test/utils/ArcGISAuthError.test.ts +167 -0
- package/packages/arcgis-rest-request/test/utils/ArcGISRequestError.test.ts +40 -0
- package/packages/arcgis-rest-request/test/utils/check-for-errors.test.ts +101 -0
- package/packages/arcgis-rest-request/test/utils/encode-form-data.test.ts +112 -0
- package/packages/arcgis-rest-request/test/utils/get-portal-url.test.ts +34 -0
- package/packages/arcgis-rest-request/test/utils/portal.test.ts +94 -0
- package/packages/arcgis-rest-request/test/utils/process-params.test.ts +190 -0
- package/packages/arcgis-rest-request/tsconfig.json +6 -0
- package/packages/arcgis-rest-sharing/README.md +67 -0
- package/packages/arcgis-rest-sharing/package-lock.json +11 -0
- package/packages/arcgis-rest-sharing/package.json +55 -0
- package/packages/arcgis-rest-sharing/src/access.ts +91 -0
- package/packages/arcgis-rest-sharing/src/group-sharing.ts +212 -0
- package/packages/arcgis-rest-sharing/src/helpers.ts +92 -0
- package/packages/arcgis-rest-sharing/src/index.ts +2 -0
- package/packages/arcgis-rest-sharing/test/access.test.ts +153 -0
- package/packages/arcgis-rest-sharing/test/group-sharing.test.ts +436 -0
- package/packages/arcgis-rest-sharing/test/mocks/sharing.ts +15 -0
- package/packages/arcgis-rest-sharing/tsconfig.json +6 -0
- package/packages/arcgis-rest-users/README.md +71 -0
- package/packages/arcgis-rest-users/package-lock.json +11 -0
- package/packages/arcgis-rest-users/package.json +51 -0
- package/packages/arcgis-rest-users/src/index.ts +1 -0
- package/packages/arcgis-rest-users/src/users.ts +70 -0
- package/packages/arcgis-rest-users/test/mocks/responses.ts +170 -0
- package/packages/arcgis-rest-users/test/users.test.ts +97 -0
- package/packages/arcgis-rest-users/tsconfig.json +6 -0
- package/support/FormData.d.ts +1 -0
- package/support/changelog.js +388 -0
- package/support/commit-template.txt +19 -0
- package/support/deploy-doc-site.js +16 -0
- package/support/publish.sh +40 -0
- package/support/test-helpers.js +8 -0
- package/tsconfig.json +69 -0
- package/tslint.json +14 -0
- package/umd-base-profile.js +82 -0
- package/umd-production-profile.js +13 -0
@@ -0,0 +1,588 @@
|
|
1
|
+
export const FindAddressCandidates = {
|
2
|
+
spatialReference: {
|
3
|
+
wkid: 4326,
|
4
|
+
latestWkid: 4326
|
5
|
+
},
|
6
|
+
candidates: [
|
7
|
+
{
|
8
|
+
address: "LAX",
|
9
|
+
location: {
|
10
|
+
x: -118.40896999999995,
|
11
|
+
y: 33.942510000000027
|
12
|
+
},
|
13
|
+
score: 100,
|
14
|
+
attributes: {},
|
15
|
+
extent: {
|
16
|
+
xmin: -118.43396999999996,
|
17
|
+
ymin: 33.917510000000028,
|
18
|
+
xmax: -118.38396999999995,
|
19
|
+
ymax: 33.967510000000026
|
20
|
+
}
|
21
|
+
},
|
22
|
+
{
|
23
|
+
address: "LAX",
|
24
|
+
location: {
|
25
|
+
x: -118.39223999999996,
|
26
|
+
y: 33.945610000000045
|
27
|
+
},
|
28
|
+
score: 100,
|
29
|
+
attributes: {},
|
30
|
+
extent: {
|
31
|
+
xmin: -118.39723999999995,
|
32
|
+
ymin: 33.940610000000042,
|
33
|
+
xmax: -118.38723999999996,
|
34
|
+
ymax: 33.950610000000047
|
35
|
+
}
|
36
|
+
},
|
37
|
+
{
|
38
|
+
address: "Lax, Georgia",
|
39
|
+
location: {
|
40
|
+
x: -83.121539999999982,
|
41
|
+
y: 31.473250000000064
|
42
|
+
},
|
43
|
+
score: 100,
|
44
|
+
attributes: {},
|
45
|
+
extent: {
|
46
|
+
xmin: -83.141539999999978,
|
47
|
+
ymin: 31.453250000000065,
|
48
|
+
xmax: -83.101539999999986,
|
49
|
+
ymax: 31.493250000000064
|
50
|
+
}
|
51
|
+
}
|
52
|
+
]
|
53
|
+
};
|
54
|
+
|
55
|
+
export const Suggest = {
|
56
|
+
suggestions: [
|
57
|
+
{
|
58
|
+
text: "LAX, Los Angeles, CA, USA",
|
59
|
+
magicKey:
|
60
|
+
"dHA9MCNsb2M9ODU0NzQzNCNsbmc9MzMjcGw9MzcyMzM5OCNsYnM9MTQ6MTQwODQ0MjY=",
|
61
|
+
isCollection: false
|
62
|
+
},
|
63
|
+
{
|
64
|
+
text: "LAX, W Century Blvd, Los Angeles, CA, 90045, USA",
|
65
|
+
magicKey:
|
66
|
+
"dHA9MCNsb2M9NTM2MDg5NyNsbmc9MzMjcGw9MTcyOTI5NCNsYnM9MTQ6MTQwODQ0MjY=",
|
67
|
+
isCollection: false
|
68
|
+
},
|
69
|
+
{
|
70
|
+
text: "Laxou, Meurthe-et-Moselle, Alsace-Champagne-Ardenne-Lorraine, FRA",
|
71
|
+
magicKey:
|
72
|
+
"dHA9MCNsb2M9MTI0NTI0ODMjbG5nPTQxI3BsPTYxMzg0NDAjbGJzPTE0OjE0NTM3NzIw",
|
73
|
+
isCollection: false
|
74
|
+
},
|
75
|
+
{
|
76
|
+
text: "Laxå, SWE",
|
77
|
+
magicKey:
|
78
|
+
"dHA9MCNsb2M9NDA5NTk3NTEjbG5nPTEzOCNwbD0zNzQzODEyNyNsYnM9MTQ6MTQ1Mzc4NjI=",
|
79
|
+
isCollection: false
|
80
|
+
},
|
81
|
+
{
|
82
|
+
text: "Laxmanchanda, Adilabad, Telangana, IND",
|
83
|
+
magicKey:
|
84
|
+
"dHA9MCNsb2M9MzExMDM2MzEjbG5nPTMzI3BsPTIyNjA1MDczI2xicz0xNDoxNDUyOTc5MA==",
|
85
|
+
isCollection: false
|
86
|
+
}
|
87
|
+
]
|
88
|
+
};
|
89
|
+
|
90
|
+
export const ReverseGeocode = {
|
91
|
+
address: {
|
92
|
+
Match_addr: "LA Airport",
|
93
|
+
LongLabel: "LA Airport, Los Angeles, CA, USA",
|
94
|
+
ShortLabel: "LA Airport",
|
95
|
+
Addr_type: "POI",
|
96
|
+
Type: "Airport",
|
97
|
+
PlaceName: "LA Airport",
|
98
|
+
AddNum: "",
|
99
|
+
Address: "",
|
100
|
+
Block: "",
|
101
|
+
Sector: "",
|
102
|
+
Neighborhood: "",
|
103
|
+
District: "",
|
104
|
+
City: "Los Angeles",
|
105
|
+
MetroArea: "",
|
106
|
+
Subregion: "Los Angeles County",
|
107
|
+
Region: "California",
|
108
|
+
Territory: "",
|
109
|
+
Postal: "",
|
110
|
+
PostalExt: "",
|
111
|
+
CountryCode: "USA"
|
112
|
+
},
|
113
|
+
location: {
|
114
|
+
x: -118.40896999999995,
|
115
|
+
y: 33.942510000000027,
|
116
|
+
spatialReference: {
|
117
|
+
wkid: 4326,
|
118
|
+
latestWkid: 4326
|
119
|
+
}
|
120
|
+
}
|
121
|
+
};
|
122
|
+
|
123
|
+
export const GeocodeAddresses = {
|
124
|
+
spatialReference: { wkid: 4326, latestWkid: 4326 },
|
125
|
+
locations: [
|
126
|
+
{
|
127
|
+
address: "380 New York St, Redlands, California, 92373",
|
128
|
+
location: { x: -117.19567031799994, y: 34.056488119000051 },
|
129
|
+
score: 100,
|
130
|
+
attributes: {
|
131
|
+
ResultID: 1,
|
132
|
+
Loc_name: "World",
|
133
|
+
Status: "M",
|
134
|
+
Score: 100,
|
135
|
+
Match_addr: "380 New York St, Redlands, California, 92373",
|
136
|
+
LongLabel: "380 New York St, Redlands, CA, 92373, USA",
|
137
|
+
ShortLabel: "380 New York St",
|
138
|
+
Addr_type: "PointAddress",
|
139
|
+
Type: "",
|
140
|
+
PlaceName: "",
|
141
|
+
Place_addr: "380 New York St, Redlands, California, 92373",
|
142
|
+
Phone: "",
|
143
|
+
URL: "",
|
144
|
+
Rank: 20,
|
145
|
+
AddBldg: "",
|
146
|
+
AddNum: "380",
|
147
|
+
AddNumFrom: "",
|
148
|
+
AddNumTo: "",
|
149
|
+
AddRange: "",
|
150
|
+
Side: "R",
|
151
|
+
StPreDir: "",
|
152
|
+
StPreType: "",
|
153
|
+
StName: "New York",
|
154
|
+
StType: "St",
|
155
|
+
StDir: "",
|
156
|
+
BldgType: "",
|
157
|
+
BldgName: "",
|
158
|
+
LevelType: "",
|
159
|
+
LevelName: "",
|
160
|
+
UnitType: "",
|
161
|
+
UnitName: "",
|
162
|
+
SubAddr: "",
|
163
|
+
StAddr: "380 New York St",
|
164
|
+
Block: "",
|
165
|
+
Sector: "",
|
166
|
+
Nbrhd: "West Redlands",
|
167
|
+
District: "",
|
168
|
+
City: "Redlands",
|
169
|
+
MetroArea: "Inland Empire",
|
170
|
+
Subregion: "San Bernardino",
|
171
|
+
Region: "California",
|
172
|
+
RegionAbbr: "CA",
|
173
|
+
Territory: "",
|
174
|
+
Zone: "",
|
175
|
+
Postal: "92373",
|
176
|
+
PostalExt: "",
|
177
|
+
Country: "USA",
|
178
|
+
LangCode: "ENG",
|
179
|
+
Distance: 0,
|
180
|
+
X: -117.1956703176181,
|
181
|
+
Y: 34.056488119308924,
|
182
|
+
DisplayX: -117.1953135,
|
183
|
+
DisplayY: 34.056108000000009,
|
184
|
+
Xmin: -117.1963135,
|
185
|
+
Xmax: -117.19431349999999,
|
186
|
+
Ymin: 34.055108000000011,
|
187
|
+
Ymax: 34.057108000000007
|
188
|
+
}
|
189
|
+
},
|
190
|
+
{
|
191
|
+
address: "1 World Way, Los Angeles, California, 90045",
|
192
|
+
location: { x: -118.39751976799994, y: 33.944172212000069 },
|
193
|
+
score: 100,
|
194
|
+
attributes: {
|
195
|
+
ResultID: 2,
|
196
|
+
Loc_name: "World",
|
197
|
+
Status: "M",
|
198
|
+
Score: 100,
|
199
|
+
Match_addr: "1 World Way, Los Angeles, California, 90045",
|
200
|
+
LongLabel: "1 World Way, Los Angeles, CA, 90045, USA",
|
201
|
+
ShortLabel: "1 World Way",
|
202
|
+
Addr_type: "StreetAddress",
|
203
|
+
Type: "",
|
204
|
+
PlaceName: "",
|
205
|
+
Place_addr: "1 World Way, Los Angeles, California, 90045",
|
206
|
+
Phone: "",
|
207
|
+
URL: "",
|
208
|
+
Rank: 20,
|
209
|
+
AddBldg: "",
|
210
|
+
AddNum: "1",
|
211
|
+
AddNumFrom: "1",
|
212
|
+
AddNumTo: "57",
|
213
|
+
AddRange: "1-57",
|
214
|
+
Side: "R",
|
215
|
+
StPreDir: "",
|
216
|
+
StPreType: "",
|
217
|
+
StName: "World",
|
218
|
+
StType: "Way",
|
219
|
+
StDir: "",
|
220
|
+
BldgType: "",
|
221
|
+
BldgName: "",
|
222
|
+
LevelType: "",
|
223
|
+
LevelName: "",
|
224
|
+
UnitType: "",
|
225
|
+
UnitName: "",
|
226
|
+
SubAddr: "",
|
227
|
+
StAddr: "1 World Way",
|
228
|
+
Block: "",
|
229
|
+
Sector: "",
|
230
|
+
Nbrhd: "Westchester",
|
231
|
+
District: "",
|
232
|
+
City: "Los Angeles",
|
233
|
+
MetroArea: "Los Angeles Metro Area",
|
234
|
+
Subregion: "Los Angeles",
|
235
|
+
Region: "California",
|
236
|
+
RegionAbbr: "CA",
|
237
|
+
Territory: "",
|
238
|
+
Zone: "",
|
239
|
+
Postal: "90045",
|
240
|
+
PostalExt: "",
|
241
|
+
Country: "USA",
|
242
|
+
LangCode: "ENG",
|
243
|
+
Distance: 0,
|
244
|
+
X: -118.39751976816108,
|
245
|
+
Y: 33.944172211706103,
|
246
|
+
DisplayX: -118.39751976816108,
|
247
|
+
DisplayY: 33.944172211706103,
|
248
|
+
Xmin: -118.39851976816108,
|
249
|
+
Xmax: -118.39651976816107,
|
250
|
+
Ymin: 33.943172211706106,
|
251
|
+
Ymax: 33.945172211706101
|
252
|
+
}
|
253
|
+
}
|
254
|
+
]
|
255
|
+
};
|
256
|
+
|
257
|
+
export const SharingInfo = {
|
258
|
+
currentVersion: 10.41,
|
259
|
+
serviceDescription: "Sample geocoder for San Diego, California, USA",
|
260
|
+
addressFields: [
|
261
|
+
{
|
262
|
+
name: "Address",
|
263
|
+
type: "esriFieldTypeString",
|
264
|
+
alias: "Address",
|
265
|
+
required: false,
|
266
|
+
length: 100
|
267
|
+
},
|
268
|
+
{
|
269
|
+
name: "Neighborhood",
|
270
|
+
type: "esriFieldTypeString",
|
271
|
+
alias: "Neighborhood",
|
272
|
+
required: false,
|
273
|
+
length: 50
|
274
|
+
},
|
275
|
+
{
|
276
|
+
name: "City",
|
277
|
+
type: "esriFieldTypeString",
|
278
|
+
alias: "City",
|
279
|
+
required: false,
|
280
|
+
length: 100
|
281
|
+
},
|
282
|
+
{
|
283
|
+
name: "Subregion",
|
284
|
+
type: "esriFieldTypeString",
|
285
|
+
alias: "Subregion",
|
286
|
+
required: false,
|
287
|
+
length: 50
|
288
|
+
},
|
289
|
+
{
|
290
|
+
name: "Region",
|
291
|
+
type: "esriFieldTypeString",
|
292
|
+
alias: "Region",
|
293
|
+
required: false,
|
294
|
+
length: 75
|
295
|
+
},
|
296
|
+
{
|
297
|
+
name: "Postal",
|
298
|
+
type: "esriFieldTypeString",
|
299
|
+
alias: "Postal",
|
300
|
+
required: false,
|
301
|
+
length: 15
|
302
|
+
},
|
303
|
+
{
|
304
|
+
name: "PostalExt",
|
305
|
+
type: "esriFieldTypeString",
|
306
|
+
alias: "PostalExt",
|
307
|
+
required: false,
|
308
|
+
length: 12
|
309
|
+
},
|
310
|
+
{
|
311
|
+
name: "Country",
|
312
|
+
type: "esriFieldTypeString",
|
313
|
+
alias: "Country",
|
314
|
+
required: false,
|
315
|
+
length: 50
|
316
|
+
}
|
317
|
+
],
|
318
|
+
singleLineAddressField: {
|
319
|
+
name: "SingleLine",
|
320
|
+
type: "esriFieldTypeString",
|
321
|
+
alias: "Single Line Input",
|
322
|
+
required: false,
|
323
|
+
length: 250
|
324
|
+
},
|
325
|
+
candidateFields: [
|
326
|
+
{
|
327
|
+
name: "Loc_name",
|
328
|
+
type: "esriFieldTypeString",
|
329
|
+
alias: "Loc_name",
|
330
|
+
required: false,
|
331
|
+
length: 29
|
332
|
+
},
|
333
|
+
{
|
334
|
+
name: "Shape",
|
335
|
+
type: "esriFieldTypeGeometry",
|
336
|
+
alias: "Shape",
|
337
|
+
required: false
|
338
|
+
},
|
339
|
+
{
|
340
|
+
name: "Score",
|
341
|
+
type: "esriFieldTypeDouble",
|
342
|
+
alias: "Score",
|
343
|
+
required: false
|
344
|
+
},
|
345
|
+
{
|
346
|
+
name: "Match_addr",
|
347
|
+
type: "esriFieldTypeString",
|
348
|
+
alias: "Match_addr",
|
349
|
+
required: false,
|
350
|
+
length: 200
|
351
|
+
},
|
352
|
+
{
|
353
|
+
name: "Side",
|
354
|
+
type: "esriFieldTypeString",
|
355
|
+
alias: "Side",
|
356
|
+
required: false,
|
357
|
+
length: 1
|
358
|
+
},
|
359
|
+
{
|
360
|
+
name: "StAddr",
|
361
|
+
type: "esriFieldTypeString",
|
362
|
+
alias: "StAddr",
|
363
|
+
required: false,
|
364
|
+
length: 120
|
365
|
+
},
|
366
|
+
{
|
367
|
+
name: "AddNum",
|
368
|
+
type: "esriFieldTypeString",
|
369
|
+
alias: "AddNum",
|
370
|
+
required: false,
|
371
|
+
length: 12
|
372
|
+
},
|
373
|
+
{
|
374
|
+
name: "StPreDir",
|
375
|
+
type: "esriFieldTypeString",
|
376
|
+
alias: "StPreDir",
|
377
|
+
required: false,
|
378
|
+
length: 20
|
379
|
+
},
|
380
|
+
{
|
381
|
+
name: "StPreType",
|
382
|
+
type: "esriFieldTypeString",
|
383
|
+
alias: "StPreType",
|
384
|
+
required: false,
|
385
|
+
length: 20
|
386
|
+
},
|
387
|
+
{
|
388
|
+
name: "StName",
|
389
|
+
type: "esriFieldTypeString",
|
390
|
+
alias: "StName",
|
391
|
+
required: false,
|
392
|
+
length: 70
|
393
|
+
},
|
394
|
+
{
|
395
|
+
name: "StType",
|
396
|
+
type: "esriFieldTypeString",
|
397
|
+
alias: "StType",
|
398
|
+
required: false,
|
399
|
+
length: 20
|
400
|
+
},
|
401
|
+
{
|
402
|
+
name: "StDir",
|
403
|
+
type: "esriFieldTypeString",
|
404
|
+
alias: "StDir",
|
405
|
+
required: false,
|
406
|
+
length: 20
|
407
|
+
},
|
408
|
+
{
|
409
|
+
name: "City",
|
410
|
+
type: "esriFieldTypeString",
|
411
|
+
alias: "City",
|
412
|
+
required: false,
|
413
|
+
length: 120
|
414
|
+
},
|
415
|
+
{
|
416
|
+
name: "Region",
|
417
|
+
type: "esriFieldTypeString",
|
418
|
+
alias: "Region",
|
419
|
+
required: false,
|
420
|
+
length: 120
|
421
|
+
},
|
422
|
+
{
|
423
|
+
name: "Postal",
|
424
|
+
type: "esriFieldTypeString",
|
425
|
+
alias: "Postal",
|
426
|
+
required: false,
|
427
|
+
length: 10
|
428
|
+
},
|
429
|
+
{
|
430
|
+
name: "Country",
|
431
|
+
type: "esriFieldTypeString",
|
432
|
+
alias: "Country",
|
433
|
+
required: false,
|
434
|
+
length: 10
|
435
|
+
}
|
436
|
+
],
|
437
|
+
intersectionCandidateFields: [
|
438
|
+
{
|
439
|
+
name: "Loc_name",
|
440
|
+
type: "esriFieldTypeString",
|
441
|
+
alias: "Loc_name",
|
442
|
+
required: false,
|
443
|
+
length: 29
|
444
|
+
},
|
445
|
+
{
|
446
|
+
name: "Shape",
|
447
|
+
type: "esriFieldTypeGeometry",
|
448
|
+
alias: "Shape",
|
449
|
+
required: false
|
450
|
+
},
|
451
|
+
{
|
452
|
+
name: "Score",
|
453
|
+
type: "esriFieldTypeDouble",
|
454
|
+
alias: "Score",
|
455
|
+
required: false
|
456
|
+
},
|
457
|
+
{
|
458
|
+
name: "Match_addr",
|
459
|
+
type: "esriFieldTypeString",
|
460
|
+
alias: "Match_addr",
|
461
|
+
required: false,
|
462
|
+
length: 200
|
463
|
+
},
|
464
|
+
{
|
465
|
+
name: "Side",
|
466
|
+
type: "esriFieldTypeString",
|
467
|
+
alias: "Side",
|
468
|
+
required: false,
|
469
|
+
length: 1
|
470
|
+
},
|
471
|
+
{
|
472
|
+
name: "StAddr",
|
473
|
+
type: "esriFieldTypeString",
|
474
|
+
alias: "StAddr",
|
475
|
+
required: false,
|
476
|
+
length: 120
|
477
|
+
},
|
478
|
+
{
|
479
|
+
name: "AddNum",
|
480
|
+
type: "esriFieldTypeString",
|
481
|
+
alias: "AddNum",
|
482
|
+
required: false,
|
483
|
+
length: 12
|
484
|
+
},
|
485
|
+
{
|
486
|
+
name: "StPreDir",
|
487
|
+
type: "esriFieldTypeString",
|
488
|
+
alias: "StPreDir",
|
489
|
+
required: false,
|
490
|
+
length: 20
|
491
|
+
},
|
492
|
+
{
|
493
|
+
name: "StPreType",
|
494
|
+
type: "esriFieldTypeString",
|
495
|
+
alias: "StPreType",
|
496
|
+
required: false,
|
497
|
+
length: 20
|
498
|
+
},
|
499
|
+
{
|
500
|
+
name: "StName",
|
501
|
+
type: "esriFieldTypeString",
|
502
|
+
alias: "StName",
|
503
|
+
required: false,
|
504
|
+
length: 70
|
505
|
+
},
|
506
|
+
{
|
507
|
+
name: "StType",
|
508
|
+
type: "esriFieldTypeString",
|
509
|
+
alias: "StType",
|
510
|
+
required: false,
|
511
|
+
length: 20
|
512
|
+
},
|
513
|
+
{
|
514
|
+
name: "StDir",
|
515
|
+
type: "esriFieldTypeString",
|
516
|
+
alias: "StDir",
|
517
|
+
required: false,
|
518
|
+
length: 20
|
519
|
+
},
|
520
|
+
{
|
521
|
+
name: "City",
|
522
|
+
type: "esriFieldTypeString",
|
523
|
+
alias: "City",
|
524
|
+
required: false,
|
525
|
+
length: 120
|
526
|
+
},
|
527
|
+
{
|
528
|
+
name: "Region",
|
529
|
+
type: "esriFieldTypeString",
|
530
|
+
alias: "Region",
|
531
|
+
required: false,
|
532
|
+
length: 120
|
533
|
+
},
|
534
|
+
{
|
535
|
+
name: "Postal",
|
536
|
+
type: "esriFieldTypeString",
|
537
|
+
alias: "Postal",
|
538
|
+
required: false,
|
539
|
+
length: 10
|
540
|
+
},
|
541
|
+
{
|
542
|
+
name: "Country",
|
543
|
+
type: "esriFieldTypeString",
|
544
|
+
alias: "Country",
|
545
|
+
required: false,
|
546
|
+
length: 10
|
547
|
+
}
|
548
|
+
],
|
549
|
+
spatialReference: {
|
550
|
+
wkid: 4326,
|
551
|
+
latestWkid: 4326
|
552
|
+
},
|
553
|
+
locatorProperties: {
|
554
|
+
UICLSID: "{3D486637-6BCF-4A0C-83DB-A02D437FB8FC}",
|
555
|
+
IntersectionConnectors: "& @ | and",
|
556
|
+
SuggestedBatchSize: 150,
|
557
|
+
MaxBatchSize: 1000,
|
558
|
+
LoadBalancerTimeOut: 60,
|
559
|
+
WriteXYCoordFields: "TRUE",
|
560
|
+
WriteStandardizedAddressField: "FALSE",
|
561
|
+
WriteReferenceIDField: "FALSE",
|
562
|
+
WritePercentAlongField: "FALSE"
|
563
|
+
},
|
564
|
+
locators: [
|
565
|
+
{
|
566
|
+
name: "PointAddress"
|
567
|
+
},
|
568
|
+
{
|
569
|
+
name: "StreetAddress"
|
570
|
+
},
|
571
|
+
{
|
572
|
+
name: "PostalExt"
|
573
|
+
},
|
574
|
+
{
|
575
|
+
name: "StreetName"
|
576
|
+
},
|
577
|
+
{
|
578
|
+
name: "Postal"
|
579
|
+
},
|
580
|
+
{
|
581
|
+
name: "Gazetteer"
|
582
|
+
},
|
583
|
+
{
|
584
|
+
name: "AdminPlaces"
|
585
|
+
}
|
586
|
+
],
|
587
|
+
capabilities: "Geocode,ReverseGeocode,Suggest"
|
588
|
+
};
|
@@ -0,0 +1,64 @@
|
|
1
|
+
[![npm version][npm-img]][npm-url]
|
2
|
+
[![build status][travis-img]][travis-url]
|
3
|
+
[![apache licensed](https://img.shields.io/badge/license-Apache-green.svg?style=flat-square)](https://raw.githubusercontent.com/Esri/arcgis-rest-js/master/LICENSE)
|
4
|
+
|
5
|
+
[npm-img]: https://img.shields.io/npm/v/@esri/arcgis-rest-groups.svg?style=flat-square
|
6
|
+
[npm-url]: https://www.npmjs.com/package/@esri/arcgis-rest-groups
|
7
|
+
[travis-img]: https://img.shields.io/travis/Esri/arcgis-rest-js/master.svg?style=flat-square
|
8
|
+
[travis-url]: https://travis-ci.org/Esri/arcgis-rest-js
|
9
|
+
|
10
|
+
# @esri/arcgis-rest-groups
|
11
|
+
|
12
|
+
> A module for working with groups in the ArcGIS REST API that runs in Node.js and modern browsers.
|
13
|
+
|
14
|
+
### Example
|
15
|
+
|
16
|
+
```bash
|
17
|
+
npm install @esri/arcgis-rest-request
|
18
|
+
npm install @esri/arcgis-rest-groups
|
19
|
+
```
|
20
|
+
|
21
|
+
```js
|
22
|
+
import { searchGroups } from '@esri/arcgis-rest-groups';
|
23
|
+
|
24
|
+
searchGroups({q:"water"})
|
25
|
+
.then(response => {
|
26
|
+
console.log(response.results.length) // 10
|
27
|
+
});
|
28
|
+
```
|
29
|
+
|
30
|
+
### [API Reference](https://esri.github.io/arcgis-rest-js/api/groups/)
|
31
|
+
|
32
|
+
### Issues
|
33
|
+
|
34
|
+
If something isn't working the way you expected, please take a look at [previously logged issues](https://github.com/Esri/arcgis-rest-js/issues) first. Have you found a new bug? Want to request a new feature? We'd [**love**](https://github.com/Esri/arcgis-rest-js/issues/new) to hear from you.
|
35
|
+
|
36
|
+
If you're looking for help you can also post issues on [GIS Stackexchange](http://gis.stackexchange.com/questions/ask?tags=esri-oss).
|
37
|
+
|
38
|
+
### Versioning
|
39
|
+
|
40
|
+
For transparency into the release cycle and in striving to maintain backward compatibility, @esri/arcgis-rest-js is maintained under Semantic Versioning guidelines and will adhere to these rules whenever possible.
|
41
|
+
|
42
|
+
For more information on SemVer, please visit <http://semver.org/>.
|
43
|
+
|
44
|
+
### Contributing
|
45
|
+
|
46
|
+
Esri welcomes contributions from anyone and everyone. Please see our [guidelines for contributing](CONTRIBUTING.md).
|
47
|
+
|
48
|
+
### License
|
49
|
+
|
50
|
+
Copyright © 2017-2018 Esri
|
51
|
+
|
52
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
53
|
+
you may not use this file except in compliance with the License.
|
54
|
+
You may obtain a copy of the License at
|
55
|
+
|
56
|
+
> http://www.apache.org/licenses/LICENSE-2.0
|
57
|
+
|
58
|
+
Unless required by applicable law or agreed to in writing, software
|
59
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
60
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
61
|
+
See the License for the specific language governing permissions and
|
62
|
+
limitations under the License.
|
63
|
+
|
64
|
+
A copy of the license is available in the repository's [LICENSE](../../LICENSE) file.
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"requires": true,
|
3
|
+
"lockfileVersion": 1,
|
4
|
+
"dependencies": {
|
5
|
+
"tslib": {
|
6
|
+
"version": "1.8.0",
|
7
|
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.8.0.tgz",
|
8
|
+
"integrity": "sha512-ymKWWZJST0/CkgduC2qkzjMOWr4bouhuURNXCn/inEX0L57BnRG6FhX76o7FOnsjHazCjfU2LKeSrlS2sIKQJg=="
|
9
|
+
}
|
10
|
+
}
|
11
|
+
}
|