diff --git a/packages/arcgis-rest-places/src/findPlacesNearPoint.ts b/packages/arcgis-rest-places/src/findPlacesNearPoint.ts index bf3ac8ae0..cfdbaa475 100644 --- a/packages/arcgis-rest-places/src/findPlacesNearPoint.ts +++ b/packages/arcgis-rest-places/src/findPlacesNearPoint.ts @@ -50,11 +50,9 @@ export interface IFindPlacesNearPointOptions * - A partial name filter with `name` option * * As this request can return many results, pagination is supported. - * Regardless of paging, the maximum number of places that can be returned - * by a single query is `200`. When a query results in more than `200` - * places, the response will contain the property - * `"maxResultsExceeded":true` in addition to place results. If `maxResultsExceeded` - * is true an additional method `response.nextPage()` can be used to get the next page of results. + * When a query results in more than [pageSize] places, the response will contain the property + * `pagination` in addition to place results. If `pagination` exists, an additional method + * `response.nextPage()` can be used to get the next page of results. * * ```js * import { findPlacesNearPoint } from "@esri/arcgis-rest-places"; diff --git a/packages/arcgis-rest-places/src/findPlacesWithinExtent.ts b/packages/arcgis-rest-places/src/findPlacesWithinExtent.ts index 6b0dd5d33..e719e382d 100644 --- a/packages/arcgis-rest-places/src/findPlacesWithinExtent.ts +++ b/packages/arcgis-rest-places/src/findPlacesWithinExtent.ts @@ -56,11 +56,9 @@ export interface IFindPlaceWithinExtentOptions * - A partial name filter with `name` option * * As this request can return many results, pagination is supported. - * Regardless of paging, the maximum number of places that can be returned - * by a single query is `200`. When a query results in more than `200` - * places, the response will contain the property - * `"maxResultsExceeded":true` in addition to place results. If `maxResultsExceeded` - * is true an additional method `response.nextPage()` can be used to get the next page of results. + * When a query results in more than [pageSize] places, the response will contain the property + * `pagination` in addition to place results. If `pagination` exists, an additional method + * `response.nextPage()` can be used to get the next page of results. * * ``` * import { findPlacesWithinExtent } from "@esri/arcgis-rest-places"; diff --git a/packages/arcgis-rest-places/test/mocks/nearPoint.mock.ts b/packages/arcgis-rest-places/test/mocks/nearPoint.mock.ts index 01de9730e..c514f97d0 100644 --- a/packages/arcgis-rest-places/test/mocks/nearPoint.mock.ts +++ b/packages/arcgis-rest-places/test/mocks/nearPoint.mock.ts @@ -151,7 +151,6 @@ export const placeNearPointMockMoreResults = { distance: 22.6 } ], - maxResultsExceeded: true, links: { base: "https://placesdev-api.arcgis.com/", next: "/arcgis/rest/services/places-service/v1/places/near-point?x=-3.18830000&y=55.95330000&radius=100.00000000&f=json&offset=10&pageSize=10" @@ -176,7 +175,6 @@ export const placeNearPointMockNoMoreResults = { distance: 6.4 } ], - maxResultsExceeded: false, pagination: { previousUrl: "https://placesdev-api.arcgis.com/arcgis/rest/services/places-service/v1/places/near-point?x=-3.18830000&y=55.95330000&radius=100.00000000&f=json&offset=0&pageSize=10" diff --git a/packages/arcgis-rest-places/test/mocks/withinExtent.mock.ts b/packages/arcgis-rest-places/test/mocks/withinExtent.mock.ts index c9bfbbfca..a026046f9 100644 --- a/packages/arcgis-rest-places/test/mocks/withinExtent.mock.ts +++ b/packages/arcgis-rest-places/test/mocks/withinExtent.mock.ts @@ -110,7 +110,6 @@ export const placesWithinExtentMockMoreResults = { } } ], - maxResultsExceeded: true, links: { base: "https://places-service.esri.com/", next: "/rest/v1/world/places/within-extent?xmin=-118.01333400&ymin=33.78193000&xmax=-117.79575300&ymax=33.87333700&categoryIds=13002&f=json&offset=5&pageSize=5&token=AAPK7d4bf083681e434b8d7593a08954e918ro7MqS9xFOIaAk7StSGVbajdmn5IDn1upbdHw9OiZbNx5YaeP51obAVmMVcmHuZ4" @@ -145,7 +144,6 @@ export const placesWithinExtentMockNoMoreResults = { } } ], - maxResultsExceeded: false, pagination: { previousUrl: "https://places-service.esri.com/rest/v1/world/places/within-extent?xmin=-118.01333400&ymin=33.78193000&xmax=-117.79575300&ymax=33.87333700&categoryIds=13002&f=json&offset=0&pageSize=5&token=AAPK7d4bf083681e434b8d7593a08954e918ro7MqS9xFOIaAk7StSGVbajdmn5IDn1upbdHw9OiZbNx5YaeP51obAVmMVcmHuZ4"