Query Related Records (Feature Service)

URL:
https://<root>/<serviceName>/FeatureServer/<layerId>/queryRelatedRecords
Methods:
GET
Required Capability:
Query
Version Introduced:
10.0

Description

The queryRelatedRecords operation is performed on a feature service layer resource. The result of this operation are feature sets grouped by source layer and table object IDs. Each feature set contains Feature objects including the values for the fields requested by the user. For related layers, if you request geometry information, the geometry of each feature is also returned in the feature set. For related tables, the feature set does not include geometries.

All parameters related to geometry are ignored when querying related tables.

New at 11.2

  • This operation now supports pagination for non-hosted feature services that reference enterprise geodatabase data. Support for pagination is indicated when the layer-level supportsQueryRelatedPagination property, under advancedQueryCapabilities , is true .
  • Hosted and non-hosted feature services now support the orderBy and returnCountOnly parameters. Support for these parameters is indicated when the layer-level supportsAdvancedQueryRelated property, under advancedQueryCapabilities , is true .

New at 11.1

Starting at ArcGIS Enterprise 11.1, qualifying hosted feature services now support pagination with the queryRelatedRecords operation. Support for pagination is indicated when the layer-level supportsQueryRelatedPagination property, under advancedQueryCapabilities , is true .

New at 10.9

A new parameter, timeReferenceUnknownClient , has been added at 10.9. Setting timeReferenceUnknownClient as true indicates that the client is capable of working with date field data values that are not in UTC. For more information on this parameter, see the Request parameters table below.

Request parameters

ParameterDetails

objectIds

The object IDs of the layer or table to be queried. Records related to these object IDs will be queried.

Syntax

Use dark colors for code blocksCopy
1
objectIds=<objectId1>, <objectId2>

Example

Use dark colors for code blocksCopy
1
objectIds=37, 462

relationshipId

The ID of the relationship to be queried. The relationships in which this layer or table participates are included in the Feature Service Layer resource response. Records in tables or layers corresponding to the related table or layer of the relationship are queried.

Example

Use dark colors for code blocksCopy
1
relationship=4

outFields

The list of fields from the related table or layer to be included in the returned feature set. This list is a comma delimited list of field names. If you specify the shape field in the list of return fields, it is ignored. To request geometry, set returnGeometry to true . You can also specify the wildcard (*) as the value of this parameter. In this case, the results will include all the field values.

Example

Use dark colors for code blocksCopy
1
2
3
4
outFields=AREANAME,ST,POP2000

//wildcare usage
outFields=*

definitionExpression

Related records returned by the queryRelatedRecords operation can be further limited by setting a definition expression. The definition expression refers to the related table and is applied on top of the result set.

Example

Use dark colors for code blocksCopy
1
definitionExpression=POP2000 > 100000

returnGeometry

If true , the feature set includes the geometry associated with each feature. The default is true . This parameter only applies to related layers. It is ignored for related tables. If the outFields parameter is set to the wildcard (*), it implicitly implies that returnGeometry=true , and setting returnGeometry to false has no effect.

Values: true | false

maxAllowableOffset

This option can be used to specify the maxAllowableOffset to be used for generalizing geometries returned by the query operation. maxAllowableOffset is in the units of outSR . If outSR is not specified, maxAllowableOffset is assumed to be in the unit of the spatial reference of the map.

Example

Use dark colors for code blocksCopy
1
maxAllowableOffset=2

geometryPrecision

This option can be used to specify the number of decimal places in the response geometries returned by the query operation. This applies to X and Y values only (not m- or z-values).

Example

Use dark colors for code blocksCopy
1
geometryPrecision=3

resultOffset

This option can be used for fetching query results by skipping the specified number of records and starting from the next record (that is, resultOffset + 1th), and to fetch records that are beyond the maxRecordCount . The default is 0.

Example

Use dark colors for code blocksCopy
1
2
//If maxRecordCount is set to 1000, this will return the query results in range of 1001 to 1100.
resultOffset=1000

resultRecordCount

This option can be used for fetching query results up to the resultRecordCount specified. When resultOffset is specified but this parameter is not, the map service defaults it to maxRecordCount . The maximum value for this parameter is the value of the layer's maxRecordcount resultOffset property.

Example

Use dark colors for code blocksCopy
1
2
//Will fetch up to 10 records
resultRecordCount=10

outSR

The spatial reference of the returned geometry. The spatial reference can be specified as either a well-known ID or a spatial reference json object. If outSR is not specified, the geometry is returned in the spatial reference of the map. This parameter only applies to related layers. It is ignored for related tables.

gdbVersion

The geodatabase version to query. This parameter applies only if the isDataVersioned property of the layer queried is true . If this is not specified, query will apply to the published map’s version.

Syntax

Use dark colors for code blocksCopy
1
gdbVersion=<version>

Example

Use dark colors for code blocksCopy
1
gdbVersion=SDE.DEFAULT

historicMoment

This option works with ArcGIS Server services only. The historic moment to query. This parameter applies only if the supportsQueryWithHistoricMoment property of the layers being queried is set to true . This setting is provided in the layer resource. If historicMoment is not specified, the query will apply to the current features.

Syntax

Use dark colors for code blocksCopy
1
histrociMoment=<Epoch time in milliseconds>

Example

Use dark colors for code blocksCopy
1
historicMoment=1199145600000

returnZ

If true , z-values are included in the results if the features have z-values. Otherwise, z-values are not returned. The default is false . This parameter only applies if returnGeometry is true .

Values: true | false

returnM

If true , m-values are included in the results if the features have m-values. Otherwise, m-values are not returned. The default is false . This parameter only applies if returnGeometry is true .

Values: true | false

returnTrueCurves

(Optional)

When set to true , it returns true curves in output geometries; otherwise, curves are converted to densified polylines or polygons. The default value is false .

Values: true | false

Example

Use dark colors for code blocksCopy
1
trueCurveClient=true

orderByFields

This parameter is used to request a list of the related records based on the field order. This list is a comma delimited list of field names.

Syntax

Use dark colors for code blocksCopy
1
orderByFields=<fieldName1>,<fieldName2>

Example

Use dark colors for code blocksCopy
1
orderByFields=TOWNSHIP,RANGE

returnCountOnly

If true , returns the count of the related records for each object ID. The default is false . This parameter is only applicable if supportsAdvancedQueryRelated is true .

Values: true | false

Example

Use dark colors for code blocksCopy
1
returnCountOnly=true

datumTransformation

Introduced at 10.8. This parameter applies a datum transformation while projecting geometries in the results when outSR is different than the layer's spatial reference. When specifying transformations, you need to think about which datum transformation best projects the layer (not the feature service) to the outSR and sourceSpatialReference property in the layer resource report. For a list of valid datum transformation ID values ad well-known text strings, see Using spatial references. For more information on datum transformations, please see the transformation parameter in the Project operation.

Syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
//Syntax to apply a simple transformation
datumTransformation=<wkid>

//Syntax to apply a simple transformation
datumTransformation={"wkt": "<WKT>"}

//Syntax to apply a composite transformation
datumTransformation={"geoTransforms":[{"wkid":<id>,"forward":<true|false>},{"wkt":"<WKT>","forward":<true|false>}]}

Example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Applies a simple tranformation
datumTransformation=1623

//Applies a composite transformation
datumTransformation={
  "geoTransforms":[
    {
      "wkid":1088,
      "transformForward": true
    },
    {
      "wkit": "GEOGTRAN[\"S_JTSK_To_WGS_1984_1\",GEOGCS[\"GCS_S_JTSK\",DATUM[\"D_S_JTSK\",SPHEROID[\"Bessel_1841\",6377397.155,299.1528128]],
        PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_
        1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],METHOD[\"Position_Vector\"],
        PARAMETER[\"X_Axis_Translation\",570.8],PARAMETER[\"Y_Axis_Translation\",85.7],PARAMETER[\"Z_Axis_Translation\",462.8],
        PARAMETER[\"X_Axis_Rotation\",4.998],PARAMETER[\"Y_Axis_Rotation\",1.587],PARAMETER[\"Z_Axis_Rotation\",5.261],
        PARAMETER[\"Scale_Difference\",3.56]]",
      "transformForward":false
    }
  ]
}

timeReferenceUnknownClient

Setting timeReferenceUnknownClient as true indicates that the client is capable of working with data values that are not in UTC. If its not set to true , and the service layer's datesInUnknownTimeZone property is true , then an error is returned. The default is false

Its possible to define a service's time zone of date fields as unknown. Setting the time zone as unknown means that date values will be returned as-is from the database, rather than as date values in UTC. Non-hosted feature services can be set to use an unknown time zone using ArcGIS Server Manager. Setting the time zones to unknown also sets the datesInUnknownTimeZone layer property as true . Currently, hosted feature services do not support this setting. This setting does not apply to editor tracking date fields which are stored and returned in UTC even when the time zone is set to unknown.

Most clients released prior to ArcGIS Enterprise 10.9 will not be able to work with feature services that have an unknown time setting. The timeReferenceUnknownClient parameter prevents these clients from working with the service in order to avoid problems.. Setting this parameter to true indicates that the client is capable of working with unknown date values that are not in UTC.

Value: true | false

f

The response format. The default response format is html .

Values: html | json

Example usage

  • Example one
  • Example two
  • Example three
  • Example four

Example one

The following is a sample request URL for the queryRelatedRecords operation, which will query the related records as defined by relationship ID 2 that are related to the specified objectIds in layer 0:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/Petroleum/KSPetro/FeatureServer/0/queryRelatedRecords?objectIds=3,4,5&relationshipId=2&returnGeometry=true&outFields=*&f=html

Example two

The following is a sample request URL for the queryRelatedRecords operation, which requests to skip the first two records and return the next four records where the objectId is greater than 3:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/RelationshipOID_test/FeatureServer/3/queryRelatedRecords?objectIds=&relationshipId=1&outFields=*&definitionExpression=ObjectID>3&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&resultOffset=2&resultRecordCount=4&f=html

Example three

The following is a sample request URL for the queryRelatedRecords operation, which will return the related records count for each specified objectId where TOWNSHIP is the value for orderByField :

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/KSPetro/FeatureServer/1/queryRelatedRecords?objectIds=7028,7029,71,6263,166,72,69,7126,6080,7522,335&relationshipId=1&outFields=OBJECTID&definitionExpression=&orderByFields=TOWNSHIP&returnCountOnly=true&returnGeometry=false&maxAllowableOffset=&geometryPrecision=&outSR=&resultOffset=&resultRecordCount=&f=html&token=

Example four

The following is a sample request URL for the queryRelatedRecords operation, which will return the related records for each specified objectId where TOWNSHIP is the value for both the outField and orderByField :

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/Kansas_Petro_Data/FeatureServer/1/queryRelatedRecords?objectIds=7028,7029&relationshipId=1&outFields=TOWNSHIP&definitionExpression=1=1&orderByFields=TOWNSHIP&returnCountOnly=false&returnGeometry=false&maxAllowableOffset=&geometryPrecision=&outSR=&resultOffset=&resultRecordCount=&f=html&token=

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  "geometryType": "<geometryType>", //if records include geometry
  "spatialReference": <spatialReference>, //if records include geometry
  "hasZ": <true|false>,
  "hasM": <true|false>,
  "fields": [
    {
      "name": "<fieldName1>",
      "type": "<fieldType1>",
      "alias": "<fieldAlias1>",
      "length": "<length1>"
    },
    {
      "name": "<fieldName2>",
      "type": "<fieldType2>",
      "alias": "<fieldAlias2>",
      "length": "<length2>"
    }
  ],
  "relatedRecordGroups": [
    {
      "objectId": <objectId1>,
      "relatedRecords": [ //features may include geometry for related layers only
        <relatedFeature11>, <relatedFeature12>
      ]
    },
    {
      "objectId": <objectId2>,
      "relatedRecords": [
        <relatedFeature21>, <relatedFeature22>
      ]
    }
  ]
}

JSON Response example

  • Example one
  • Example two
  • Example three

JSON Response example

Example one

The following is a sample response returned by the queryRelatedRecords operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
  "geometryType": "esriGeometryPolygon",
  "spatialReference": {
    "wkid": 4267
  },
  "fields": [
    {
      "name": "OBJECTID",
      "type": "esriFieldTypeOID",
      "alias": "OBJECTID"
    },
    {
      "name": "FIELD_KID",
      "type": "esriFieldTypeString",
      "alias": "FIELD_KID",
      "length": 25
    },
    {
      "name": "APPROXACRE",
      "type": "esriFieldTypeDouble",
      "alias": "APPROXACRE"
    },
    {
      "name": "FIELD_NAME",
      "type": "esriFieldTypeString",
      "alias": "FIELD_NAME",
      "length": 150
    }
  ],
  "relatedRecordGroups": [
    {
      "objectId": 3,
      "relatedRecords": [
        {
          "attributes": {
            "OBJECTID": 5540,
            "FIELD_KID": "1000147595",
            "APPROXACRE": 95929,
            "FIELD_NAME": "LOST SPRINGS",
          },
          "geometry": {
            "rings": [
              [
                [
                  -96.929599633999942,
                  38.52426809800005
                ],
                [
                  -96.929602437999961,
                  38.522448437000037
                ],
                [
                  -96.92959118999994,
                  38.529723252000053
                ],
                [
                  -96.929594022999936,
                  38.527905578000059
                ],
                [
                  -96.929596839999988,
                  38.526087119000067
                ],
                [
                  -96.929599633999942,
                  38.52426809800005
                ]
              ]
            ]
          }
        }
      ]
    }
  ]
}

Example two

The example below demonstrates a response that is returned when the request has the objectIds parameter set as 7028,7029 , the relationshipId parameter is set as 1 , the outFields parameter is set as TOWNSHIPS,RANGE , the orderByFields parameter is set as TOWNSHIP,RANGE , the returnCountryOnly parameter is set as false , and returnGeometry is set as false :

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
{
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 33
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 34
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  },
  {
    "attributes": {
      "TOWNSHIP": 24,
      "RANGE": 35
    }
  }
}

Example three

The response example below demonstrates a response that is returned when the request has the objectIds parameter set as 7028,7029 , the relationshipId parameter set as 1 , the returnCountyOnly parameter is set as true , and the returnGeometry parameter is set as false :

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
{
  "relatedRecordGroups": [
    {
      "objectId": 7028,
      "count": 10218
    },
    {
      "objectId": 7029,
      "count": 3304
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.